< prev index next >

src/java.base/share/classes/java/io/ObjectStreamException.java

Print this page




  16  *
  17  * You should have received a copy of the GNU General Public License version
  18  * 2 along with this work; if not, write to the Free Software Foundation,
  19  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  20  *
  21  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  22  * or visit www.oracle.com if you need additional information or have any
  23  * questions.
  24  */
  25 
  26 package java.io;
  27 
  28 /**
  29  * Superclass of all exceptions specific to Object Stream classes.
  30  *
  31  * @author  unascribed
  32  * @since   1.1
  33  */
  34 public abstract class ObjectStreamException extends IOException {
  35 

  36     private static final long serialVersionUID = 7260898174833392607L;
  37 
  38     /**
  39      * Create an ObjectStreamException with the specified argument.
  40      *
  41      * @param message the detailed message for the exception
  42      */
  43     protected ObjectStreamException(String message) {
  44         super(message);
  45     }
  46 
  47     /**
  48      * Create an ObjectStreamException.
  49      */
  50     protected ObjectStreamException() {
  51         super();
  52     }
  53 }


  16  *
  17  * You should have received a copy of the GNU General Public License version
  18  * 2 along with this work; if not, write to the Free Software Foundation,
  19  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  20  *
  21  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  22  * or visit www.oracle.com if you need additional information or have any
  23  * questions.
  24  */
  25 
  26 package java.io;
  27 
  28 /**
  29  * Superclass of all exceptions specific to Object Stream classes.
  30  *
  31  * @author  unascribed
  32  * @since   1.1
  33  */
  34 public abstract class ObjectStreamException extends IOException {
  35 
  36     @java.io.Serial
  37     private static final long serialVersionUID = 7260898174833392607L;
  38 
  39     /**
  40      * Create an ObjectStreamException with the specified argument.
  41      *
  42      * @param message the detailed message for the exception
  43      */
  44     protected ObjectStreamException(String message) {
  45         super(message);
  46     }
  47 
  48     /**
  49      * Create an ObjectStreamException.
  50      */
  51     protected ObjectStreamException() {
  52         super();
  53     }
  54 }
< prev index next >