|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object
java.lang.Throwable
java.lang.Exception
oracle.idm.connection.ConnectionException
public class ConnectionException
This class represents connection exceptions. This framework ignores all exceptions reported during connection usage and processing except for ConnectionExceptions. This means that all other exceptions will be propagated to the calling APIs. Implementers of the IdM Connection Framework components need to wrap all exceptions that need to be handled by the framework with a ConnectionException and specify the original exception via the cause property.
Field Summary | |
---|---|
protected java.lang.String |
tag Tag used to print the connection as an XML element. |
Constructor Summary | |
---|---|
ConnectionException() Constructor for the connection exception. |
|
ConnectionException(java.lang.String message) Constructor for the connection exception. |
|
ConnectionException(java.lang.String message, Connection connection) Constructor for the connection exception. |
|
ConnectionException(java.lang.String message, Connection connection, java.lang.Throwable cause) Constructor for the connection exception. |
|
ConnectionException(java.lang.String message, java.lang.String type) Constructor for the connection exception. |
|
ConnectionException(java.lang.String message, java.lang.String type, Connection connection) Constructor for the connection exception. |
|
ConnectionException(java.lang.String message, java.lang.String type, Connection connection, java.lang.Throwable cause) Constructor for the connection exception. |
|
ConnectionException(java.lang.String message, java.lang.String type, java.lang.String operation) Constructor for the connection exception. |
|
ConnectionException(java.lang.String message, java.lang.String type, java.lang.String operation, Connection connection) Constructor for the connection exception. |
|
ConnectionException(java.lang.String message, java.lang.String type, java.lang.String operation, Connection connection, java.lang.Throwable cause) Constructor for the connection exception. |
|
ConnectionException(java.lang.String message, java.lang.String type, java.lang.String operation, java.util.Map parameters) Constructor for the connection exception. |
|
ConnectionException(java.lang.String message, java.lang.String type, java.lang.String operation, java.util.Map parameters, Connection connection) Constructor for the connection exception. |
|
ConnectionException(java.lang.String message, java.lang.String type, java.lang.String operation, java.util.Map parameters, Connection connection, java.lang.Throwable cause) Constructor for the connection exception. |
|
ConnectionException(java.lang.String message, java.lang.String type, java.lang.String operation, java.util.Map parameters, java.lang.Throwable cause) Constructor for the connection exception. |
|
ConnectionException(java.lang.String message, java.lang.String type, java.lang.String operation, java.lang.Throwable cause) Constructor for the connection exception. |
|
ConnectionException(java.lang.String message, java.lang.String type, java.lang.Throwable cause) Constructor for the connection exception. |
|
ConnectionException(java.lang.String message, java.lang.Throwable cause) Constructor for the connection exception. |
|
ConnectionException(java.lang.Throwable cause) Constructor for the connection exception. |
Method Summary | |
---|---|
Connection |
getConnection() Returns the connection that triggered this exception. |
java.util.Collection |
getLocalizedMessages() Returns localized messages associated with this connection exception and all of its causes. |
java.util.Collection |
getMessages() Returns messages associated with this connection exception and all of its causes. |
java.lang.String |
getOperation() Returns the operation that triggered this exception. |
java.util.Map |
getParameters() Returns the operation parameters. |
java.lang.String |
getType() Returns the type that triggered this exception. |
boolean |
isAlteredConnection() Returns true if this is an altered connection exception. |
boolean |
isLeakedConnection() Returns true if this is a connection leak exception. |
boolean |
isMatchingOperation(java.lang.String operation) Tests if the connection exception operation value matches. |
boolean |
isMatchingType(java.lang.String type) Tests if the connection exception type value matches. |
java.lang.String |
toString() |
void |
xprint(XmlPrintWriter out) Prints connection exception properties to the XmlPrintWriter as an XML element. |
protected void |
xprintBody(XmlPrintWriter out) This method prints the connection manager XML tag body. |
Methods inherited from class java.lang.Throwable |
---|
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected java.lang.String tag
Constructor Detail |
---|
public ConnectionException()
public ConnectionException(java.lang.Throwable cause)
public ConnectionException(java.lang.String message)
public ConnectionException(java.lang.String message, java.lang.Throwable cause)
public ConnectionException(java.lang.String message, Connection connection)
public ConnectionException(java.lang.String message, Connection connection, java.lang.Throwable cause)
public ConnectionException(java.lang.String message, java.lang.String type)
public ConnectionException(java.lang.String message, java.lang.String type, java.lang.Throwable cause)
public ConnectionException(java.lang.String message, java.lang.String type, Connection connection)
public ConnectionException(java.lang.String message, java.lang.String type, Connection connection, java.lang.Throwable cause)
public ConnectionException(java.lang.String message, java.lang.String type, java.lang.String operation)
public ConnectionException(java.lang.String message, java.lang.String type, java.lang.String operation, java.lang.Throwable cause)
public ConnectionException(java.lang.String message, java.lang.String type, java.lang.String operation, Connection connection)
public ConnectionException(java.lang.String message, java.lang.String type, java.lang.String operation, Connection connection, java.lang.Throwable cause)
public ConnectionException(java.lang.String message, java.lang.String type, java.lang.String operation, java.util.Map parameters)
public ConnectionException(java.lang.String message, java.lang.String type, java.lang.String operation, java.util.Map parameters, java.lang.Throwable cause)
public ConnectionException(java.lang.String message, java.lang.String type, java.lang.String operation, java.util.Map parameters, Connection connection)
public ConnectionException(java.lang.String message, java.lang.String type, java.lang.String operation, java.util.Map parameters, Connection connection, java.lang.Throwable cause)
Method Detail |
---|
public boolean isLeakedConnection()
public boolean isAlteredConnection()
public java.lang.String getType()
public final boolean isMatchingType(java.lang.String type)
Every connection exception matches the Connection.TYPE value.
public java.lang.String getOperation()
public final boolean isMatchingOperation(java.lang.String operation)
Every connection exception matches the Connection.Operation.EVERY value.
public java.util.Map getParameters()
public Connection getConnection()
public java.util.Collection getMessages()
public java.util.Collection getLocalizedMessages()
public java.lang.String toString()
toString
in class java.lang.Throwable
public void xprint(XmlPrintWriter out)
xprint
in interface XmlPrintable
out
- XmlPrintWriter for printing connection exception propeties.protected void xprintBody(XmlPrintWriter out)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |