blob: 950ca89860e4f329ac6f8a93909d2f46f38efb97 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
public class ExampleException extends Exception {
public ExampleException() {
this(null, null);
}
public ExampleException(String message) {
this(message, null);
}
public ExampleException(Throwable cause) {
this(cause != null ? cause.getMessage() : null, cause);
}
public ExampleException(String message, Throwable cause) {
super(message);
if (cause != null) super.initCause(cause);
}
}
|