01: /*
02: * Binary data exception.
03: * Copyright (C) 2001 Stephen Ostermiller
04: * http://ostermiller.org/contact.pl?regarding=Java+Utilities
05: *
06: * This program is free software; you can redistribute it and/or modify
07: * it under the terms of the GNU General Public License as published by
08: * the Free Software Foundation; either version 2 of the License, or
09: * (at your option) any later version.
10: *
11: * This program is distributed in the hope that it will be useful,
12: * but WITHOUT ANY WARRANTY; without even the implied warranty of
13: * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14: * GNU General Public License for more details.
15: *
16: * See COPYING.TXT for details.
17: */
18:
19: package com.Ostermiller.util;
20:
21: import java.io.IOException;
22:
23: /**
24: * Signals that binary data was encountered and continuing
25: * with a text operation would likely corrupt the data.
26: *
27: * @author Stephen Ostermiller http://ostermiller.org/contact.pl?regarding=Java+Utilities
28: * @since ostermillerutils 1.00.00
29: */
30: public class BinaryDataException extends IOException {
31:
32: /**
33: * Serial version ID
34: */
35: private static final long serialVersionUID = 1898699236015077076L;
36:
37: /**
38: * Constructs an IOException with null as its error detail message.
39: *
40: * @since ostermillerutils 1.00.00
41: */
42: public BinaryDataException() {
43: super ();
44: }
45:
46: /**
47: * Constructs an IOException with the specified detail message.
48: * The error message string s can later be retrieved by the
49: * Throwable.getMessage() method of class java.lang.Throwable.
50: *
51: * @param s the detail message.
52: *
53: * @since ostermillerutils 1.00.00
54: */
55: public BinaryDataException(String s) {
56: super(s);
57: }
58: }
|