Projekt

Obecné

Profil

Stáhnout (828 Bajtů) Statistiky
| Větev: | Tag: | Revize:
1
package jdeserialize;
2
import java.io.*;
3

    
4
/**
5
 * Exception used to signal that an exception object was successfully read from the 
6
 * stream.  This object holds a reference to the serialized exception object.
7
 */
8
public class ExceptionReadException extends IOException {
9
    public static final long serialVersionUID = 2277356908919221L;
10
    public content exceptionobj;
11
    /**
12
     * Constructor.
13
     * @param c the serialized exception object that was read
14
     */
15
    public ExceptionReadException(content c) {
16
        super("serialized exception read during stream");
17
        this.exceptionobj = c;
18
    }
19
    /**
20
     * Gets the Exception object that was thrown.
21
     * @return the content representing the serialized exception object
22
     */
23
    public content getExceptionObject() {
24
        return exceptionobj;
25
    }
26
}
27

    
(1-1/20)