Skip navigation links
org.identityconnectors.framework.common.exceptions
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, OperationTimeoutException
-
public class ConnectorException
- extends java.lang.RuntimeException
Base exception for the Connector framework. The Connector framework code throws only exceptions that extend ConnectorException.
- See Also:
- Serialized Form
| Constructor Summary |
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. |
| Method Summary |
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. |
| Methods inherited from class java.lang.Throwable |
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
ConnectorException
public ConnectorException()
ConnectorException
public ConnectorException(java.lang.String message)
- Sets a message for the
Exception.
- Parameters:
message - passed to the RuntimeException 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 a
RuntimeException.
- Parameters:
originalException - the original exception adapted to RuntimeException.
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 a
RuntimeException.
- Parameters:
message -
originalException - the original exception adapted to RuntimeException.
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)
- 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.
Skip navigation links
Copyright © 2012, Oracle and/or its affiliates. All rights reserved.