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

Quick Search    Search Deep

Source code: cvebrowser/dictionary/data/persistence/PersistenceException.java


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