public class UnwrappableException extends RuntimeException implements Unwrappable<UnwrappableException>
| Constructor and Description |
|---|
UnwrappableException()
Creates an exception object with "No message" passed as exception message.
|
UnwrappableException(String message)
Creates an exception object with the given message.
|
UnwrappableException(String message,
Throwable cause)
Creates an exception object with the given message and cause.
|
UnwrappableException(Throwable cause)
Creates an exception object with the given cause.
|
| Modifier and Type | Method and Description |
|---|---|
static Throwable |
getRightException(Throwable cause)
Used in constructors to correctly unwrap any throwable that has to be unwrapped.
|
static String |
getRightMessage(String message,
Throwable cause)
Used in constructors to correctly unwrap any message from cause.
|
boolean |
getUnwrap()
Returns the unwrap flag value.
|
UnwrappableException |
setUnwrap(boolean unwrap)
Sets unwrap flag to true or false.
|
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringpublic UnwrappableException()
public UnwrappableException(String message)
message - The exception message.public UnwrappableException(String message, Throwable cause)
message - The exception message.cause - The exception cause.public UnwrappableException(Throwable cause)
cause - The exception cause.public boolean getUnwrap()
UnwrappablegetUnwrap in interface Unwrappable<UnwrappableException>public UnwrappableException setUnwrap(boolean unwrap)
UnwrappablesetUnwrap in interface Unwrappable<UnwrappableException>unwrap - the unwrap flag value.public static Throwable getRightException(Throwable cause)
cause - throwable that was thrownCopyright © 2013 CERN, The European Organization for Nuclear Research. All Rights Reserved.