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
public class ConnectorException extends 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(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
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidrethrow()Re-throw the original exception.static RuntimeExceptionwrap(Throwable ex)IfExceptionparameter passed in is aRuntimeExceptionit is simply returned.-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Constructor Detail
-
ConnectorException
public ConnectorException()
-
ConnectorException
public ConnectorException(String message)
Sets a message for theException.- Parameters:
message- passed to theRuntimeExceptionmessage.
-
ConnectorException
public ConnectorException(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(String message, Throwable originalException)
Sets the stack trace to the original exception, so this exception can masquerade as the original only be aRuntimeException.- Parameters:
message-originalException- the original exception adapted toRuntimeException.
-
-
Method Detail
-
rethrow
public void rethrow() throws ThrowableRe-throw the original exception.
-
wrap
public static RuntimeException wrap(Throwable ex)
IfExceptionparameter passed in is aRuntimeExceptionit is simply returned. Otherwise theExceptionis wrapped in aConnectorExceptionand returned.- Parameters:
ex- Exception to wrap or cast and return.- Returns:
- a
RuntimeExceptionthat either is the specified exception or contains the specified exception.
-
-