public class ConnectorException
extends java.lang.RuntimeException
ConnectorException
.Constructor and Description |
---|
ConnectorException() |
ConnectorException(java.lang.String message)
Sets a message for the
Exception . |
ConnectorException(java.lang.String message,
java.lang.Throwable originalException)
Sets the stack trace to the original exception, so this exception can
masquerade as the original only be a
RuntimeException . |
ConnectorException(java.lang.Throwable originalException)
Sets the stack trace to the original exception, so this exception can
masquerade as the original only be a
RuntimeException . |
Modifier and Type | Method and Description |
---|---|
void |
rethrow()
Re-throw the original exception.
|
static java.lang.RuntimeException |
wrap(java.lang.Throwable ex)
If
Exception parameter passed in is a RuntimeException it
is simply returned. |
public ConnectorException()
public ConnectorException(java.lang.String message)
Exception
.message
- passed to the RuntimeException
message.public ConnectorException(java.lang.Throwable originalException)
RuntimeException
.originalException
- the original exception adapted to RuntimeException
.public ConnectorException(java.lang.String message, java.lang.Throwable originalException)
RuntimeException
.message
- originalException
- the original exception adapted to RuntimeException
.public void rethrow() throws java.lang.Throwable
java.lang.Exception
- throws the original passed in the constructor.java.lang.Throwable
public static java.lang.RuntimeException wrap(java.lang.Throwable ex)
Exception
parameter passed in is a RuntimeException
it
is simply returned. Otherwise the Exception
is wrapped in a
ConnectorException
and returned.ex
- Exception to wrap or cast and return.RuntimeException
that either
is the specified exception
or contains the specified exception.