diff options
Diffstat (limited to 'website/usageExamples/StandardExceptionExample_post.jpage')
-rw-r--r-- | website/usageExamples/StandardExceptionExample_post.jpage | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/website/usageExamples/StandardExceptionExample_post.jpage b/website/usageExamples/StandardExceptionExample_post.jpage new file mode 100644 index 00000000..950ca898 --- /dev/null +++ b/website/usageExamples/StandardExceptionExample_post.jpage @@ -0,0 +1,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); + } +}
\ No newline at end of file |