public class StorageException extends AbstractAdminRmiException
Constructor and Description |
---|
StorageException(java.lang.String message) |
StorageException(java.lang.String message,
java.lang.Throwable cause) |
StorageException(java.lang.Throwable cause) |
Modifier and Type | Method and Description |
---|---|
static StorageException |
storageExceotionFor(java.lang.RuntimeException cause)
Compiles a
StorageException for given RuntimeException instance. |
static StorageException |
wrapForRMI(java.lang.String message,
java.lang.Throwable t)
Creates a surrounding instance of
StorageException wrapping trace from given Throwable instance. |
static StorageException |
wrapForRMI(java.lang.Throwable t)
Creates a surrounding instance of
StorageException wrapping trace from given Throwable instance. |
enhanceExceptionMessage, generateExceptionId, getBaseMessage, getExceptionId, getMessage
public StorageException(java.lang.String message)
public StorageException(java.lang.Throwable cause)
public StorageException(java.lang.String message, java.lang.Throwable cause)
public static StorageException storageExceotionFor(java.lang.RuntimeException cause)
StorageException
for given RuntimeException
instance.cause
- The RuntimeException
instanceStorageException
carrying given cause's message and stack tracepublic static StorageException wrapForRMI(java.lang.Throwable t)
StorageException
wrapping trace from given Throwable
instance.t
- The code>Throwable instance to wrapStorageException
public static StorageException wrapForRMI(java.lang.String message, java.lang.Throwable t)
StorageException
wrapping trace from given Throwable
instance.message
- The optional message to set; if set to null
, then Throwable
's message is usedt
- The code>Throwable instance to wrapStorageException