java.io.Serializablepublic final class WrappedException
extends java.lang.RuntimeException
Exception types. Throwable
types are not handled since Throwable includes system errors like
OutOfMemoryError.| Modifier and Type | Method | Description |
|---|---|---|
java.lang.Exception |
getCause() |
Overridden to return Exception types instead of Throwable.
|
static WrappedException |
wrap(java.lang.Exception e) |
Factory method to generate a WrappedException.
|
static WrappedException |
wrap(java.lang.String message,
java.lang.Exception e) |
Factory method to generate a WrappedException.
|
public java.lang.Exception getCause()
getCause in class java.lang.Throwablepublic static WrappedException wrap(java.lang.String message, java.lang.Exception e)
message - the exception messagee - the original exceptionpublic static WrappedException wrap(java.lang.Exception e)
e - the original exceptionCopyright © 2018. All rights reserved.