|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.identityconnectors.framework.common.exceptions.ConnectorException
public class ConnectorException
Base exception for the Connector framework.
The Connector framework code throws only exceptions
that extend ConnectorException.
| Constructor Summary | |
|---|---|
ConnectorException()
|
|
ConnectorException(String message)
Sets a message for the Exception. |
|
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. |
|
ConnectorException(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 RuntimeException |
wrap(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 |
| Constructor Detail |
|---|
public ConnectorException()
public ConnectorException(String message)
Exception.
message - passed to the RuntimeException message.public ConnectorException(Throwable originalException)
RuntimeException.
originalException - the original exception adapted to RuntimeException.
public ConnectorException(String message,
Throwable originalException)
RuntimeException.
message - originalException - the original exception adapted to RuntimeException.| Method Detail |
|---|
public void rethrow()
throws Throwable
Exception - throws the original passed in the constructor.
Throwablepublic static RuntimeException wrap(Throwable ex)
Exception parameter passed in is a RuntimeException it
is simply returned. Otherwise the Exception is wrapped in a
ConnectorException and returned.
ex - Exception to wrap or cast and return.
RuntimeException that either
is the specified exception
or contains the specified exception.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||