Class ConnectorException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- org.identityconnectors.framework.common.exceptions.ConnectorException
-
- All Implemented Interfaces:
java.io.Serializable
- Direct Known Subclasses:
AlreadyExistsException
,ConfigurationException
,ConnectorIOException
,ConnectorSecurityException
,InvalidAttributeValueException
,OperationTimeoutException
,PreconditionFailedException
,PreconditionRequiredException
,RetryableException
public class ConnectorException extends java.lang.RuntimeException
Base exception for the Connector framework. The Connector framework code throws only exceptions that extendConnectorException
.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ConnectorException()
ConnectorException(java.lang.String message)
Sets a message for theException
.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 aRuntimeException
.ConnectorException(java.lang.Throwable originalException)
Sets the stack trace to the original exception, so this exception can masquerade as the original only be aRuntimeException
.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
rethrow()
Re-throw the original exception.static java.lang.RuntimeException
wrap(java.lang.Throwable ex)
IfException
parameter passed in is aRuntimeException
it is simply returned.
-
-
-
Constructor Detail
-
ConnectorException
public ConnectorException()
-
ConnectorException
public ConnectorException(java.lang.String message)
Sets a message for theException
.- Parameters:
message
- passed to theRuntimeException
message.
-
ConnectorException
public ConnectorException(java.lang.Throwable originalException)
Sets the stack trace to the original exception, so this exception can masquerade as the original only be aRuntimeException
.- Parameters:
originalException
- the original exception adapted toRuntimeException
.
-
ConnectorException
public 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 aRuntimeException
.- Parameters:
message
- the messageoriginalException
- the original exception adapted toRuntimeException
.
-
-
Method Detail
-
rethrow
public void rethrow() throws java.lang.Throwable
Re-throw the original exception.- Throws:
java.lang.Exception
- throws the original passed in the constructor.java.lang.Throwable
-
wrap
public static java.lang.RuntimeException wrap(java.lang.Throwable ex)
IfException
parameter passed in is aRuntimeException
it is simply returned. Otherwise theException
is wrapped in aConnectorException
and returned.- Parameters:
ex
- Exception to wrap or cast and return.- Returns:
- a
RuntimeException
that either is the specified exception or contains the specified exception.
-
-