KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > java > io > NotActiveException


1 /*
2  * @(#)NotActiveException.java 1.15 03/12/19
3  *
4  * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
5  * SUN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
6  */

7
8 package java.io;
9
10 /**
11  * Thrown when serialization or deserialization is not active.
12  *
13  * @author unascribed
14  * @version 1.15, 12/19/03
15  * @since JDK1.1
16  */

17 public class NotActiveException extends ObjectStreamException JavaDoc {
18     /**
19      * Constructor to create a new NotActiveException with the reason given.
20      *
21      * @param reason a String describing the reason for the exception.
22      */

23     public NotActiveException(String JavaDoc reason) {
24     super(reason);
25     }
26
27     /**
28      * Constructor to create a new NotActiveException without a reason.
29      */

30     public NotActiveException() {
31     super();
32     }
33 }
34
Popular Tags