Class ConnectorException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.identityconnectors.framework.common.exceptions.ConnectorException
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
AlreadyExistsException
,ConfigurationException
,ConnectorIOException
,ConnectorSecurityException
,InvalidAttributeValueException
,OperationTimeoutException
,PreconditionFailedException
,PreconditionRequiredException
,RetryableException
Base exception for the Connector framework. The Connector framework code
throws only exceptions that extend
ConnectorException
.- See Also:
-
Constructor Summary
ConstructorDescriptionConnectorException
(String message) Sets a message for theException
.ConnectorException
(String message, Throwable originalException) Sets the stack trace to the original exception, so this exception can masquerade as the original only be aRuntimeException
.ConnectorException
(Throwable originalException) Sets the stack trace to the original exception, so this exception can masquerade as the original only be aRuntimeException
. -
Method Summary
Modifier and TypeMethodDescriptionvoid
rethrow()
Re-throw the original exception.static RuntimeException
IfException
parameter passed in is aRuntimeException
it is simply returned.Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
ConnectorException
public ConnectorException() -
ConnectorException
Sets a message for theException
.- Parameters:
message
- passed to theRuntimeException
message.
-
ConnectorException
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
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 Details
-
rethrow
Re-throw the original exception. -
wrap
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.
-