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 extend ConnectorException.
See Also:
  • Constructor Details

    • ConnectorException

      public ConnectorException()
    • ConnectorException

      public ConnectorException(String message)
      Sets a message for the Exception.
      Parameters:
      message - passed to the RuntimeException message.
    • ConnectorException

      public ConnectorException(Throwable originalException)
      Sets the stack trace to the original exception, so this exception can masquerade as the original only be a RuntimeException.
      Parameters:
      originalException - the original exception adapted to RuntimeException.
    • 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 a RuntimeException.
      Parameters:
      message - the message
      originalException - the original exception adapted to RuntimeException.
  • Method Details

    • rethrow

      public void rethrow() throws Throwable
      Re-throw the original exception.
      Throws:
      Exception - throws the original passed in the constructor.
      Throwable
    • wrap

      public static RuntimeException wrap(Throwable ex)
      If Exception parameter passed in is a RuntimeException it is simply returned. Otherwise the Exception is wrapped in a ConnectorException 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.