KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > Ostermiller > util > BinaryDataException


1 /*
2  * Binary data exception.
3  * Copyright (C) 2001 Stephen Ostermiller
4  * http://ostermiller.org/contact.pl?regarding=Java+Utilities
5  *
6  * This program is free software; you can redistribute it and/or modify
7  * it under the terms of the GNU General Public License as published by
8  * the Free Software Foundation; either version 2 of the License, or
9  * (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 JavaDoc;
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 JavaDoc {
31
32     /**
33      * Constructs an IOException with null as its error detail message.
34      *
35      * @since ostermillerutils 1.00.00
36      */

37     public BinaryDataException(){
38         super();
39     }
40
41     /**
42      * Constructs an IOException with the specified detail message.
43      * The error message string s can later be retrieved by the
44      * Throwable.getMessage() method of class java.lang.Throwable.
45      *
46      * @param s the detail message.
47      *
48      * @since ostermillerutils 1.00.00
49      */

50     public BinaryDataException(String JavaDoc s){
51         super(s);
52     }
53 }
54
Popular Tags