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