Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

Source code: cvebrowser/dictionary/data/net/NetException.java


1   package cvebrowser.dictionary.data.net;
2   
3   import cvebrowser.exception.CVEBrowserException;
4   
5   import java.io.PrintStream;
6   import java.io.PrintWriter;
7   import java.io.ObjectOutputStream;
8   import java.io.ObjectInputStream;
9   
10  /**
11   * NetException - Models an exception inside the cvebrowser.dictionary.data.net package.
12   * @author Jose Vicente Nunez Zuleta (josevnz@users.sourceforge.net) - RHCE, SJCD, SJCP.
13   * @version 0.1 - 07/06/2003
14   */
15  public final class NetException extends CVEBrowserException {
16    /**
17     * Default constructor
18           */
19    public NetException () {
20      super();
21    }
22    
23    /**
24     * Parametric constructor
25     * @param message_
26           */
27    public NetException (String message_) {
28      super(message_);
29    }
30    
31    /**
32     * Create an exception with extra context information.
33     * @param message_ The extra information to record
34     * @param throwbl_ The exception to capture (to be used as a context)
35     */
36        public NetException(String message_, Throwable throwbl_) {
37       super(message_, throwbl_);
38    }
39  
40    /**
41    * Make this class unserializable. Any attempt to serialize will throw an exception.
42    * @param out_
43    * @throws IOException
44    */
45    private final void writeObject(ObjectOutputStream out_) throws java.io.IOException {
46      throw new java.io.IOException();
47    }
48    
49    /**
50    * Make this class undeserializeable. Throw an exception if this method is ever called.
51    * @param in_
52    * @throws IOException
53    */
54    private final void readObject(ObjectInputStream in_) throws java.io.IOException {
55      throw new java.io.IOException();
56    }
57  }