public class StorePassThroughException
extends java.lang.RuntimeException
This wrapper can be used to enable any runtime exceptions that you don't want to be caught at the store level to be propagated.
Constructor and Description |
---|
StorePassThroughException(java.lang.String message,
java.lang.Throwable cause)
Creates an exception with the provided message and cause.
|
StorePassThroughException(java.lang.Throwable cause)
Creates an exception with the provided cause.
|
Modifier and Type | Method and Description |
---|---|
java.lang.Throwable |
fillInStackTrace() |
static StoreAccessException |
handleException(java.lang.Exception re)
Helper method for handling runtime exceptions.
|
public StorePassThroughException(java.lang.String message, java.lang.Throwable cause)
message
- information about the exceptioncause
- the cause of this exceptionpublic StorePassThroughException(java.lang.Throwable cause)
cause
- the cause of this exceptionpublic java.lang.Throwable fillInStackTrace()
fillInStackTrace
in class java.lang.Throwable
public static StoreAccessException handleException(java.lang.Exception re)
Returns most as StoreAccessException
except for StorePassThroughException
.
In which case if its cause is a RuntimeException
it is thrown and if not it is returned
wrapped in a StoreAccessException
.
re
- the exception to handlerjava.lang.RuntimeException
- if re
is a StorePassThroughException
containing a RuntimeException