org.apache.commons.transaction.file
Class ResourceManagerException
java.lang.Object
java.lang.Throwable
java.lang.Exception
org.apache.commons.transaction.file.ResourceManagerException
- All Implemented Interfaces:
- ResourceManagerErrorCodes, java.io.Serializable
- Direct Known Subclasses:
- ResourceManagerSystemException
- public class ResourceManagerException
- extends java.lang.Exception
- implements ResourceManagerErrorCodes
Signals any kind of error or failure state in a ResourceManager
.
- Version:
- $Revision$
- See Also:
- Serialized Form
Fields inherited from interface org.apache.commons.transaction.file.ResourceManagerErrorCodes |
ERR_DEAD_LOCK, ERR_DUP_TX, ERR_ISOLATION_LEVEL_UNSUPPORTED, ERR_LOCK, ERR_MARKED_FOR_ROLLBACK, ERR_NO_LOCK, ERR_NO_SUCH_RESOURCE, ERR_NO_TX, ERR_RESOURCE_EXISTS, ERR_RESOURCEID_INVALID, ERR_SYSTEM, ERR_SYSTEM_INCONSISTENT, ERR_THREAD_INVALID, ERR_TX_INACTIVE, ERR_TX_INCONSISTENT, ERR_TXID_INVALID, ERR_UNKNOWN |
Constructor Summary |
ResourceManagerException(int status,
java.lang.Object txId)
|
ResourceManagerException(int status,
java.lang.Object txId,
java.lang.Throwable cause)
|
ResourceManagerException(java.lang.String message)
|
ResourceManagerException(java.lang.String message,
int status,
java.lang.Object txId)
|
ResourceManagerException(java.lang.String message,
int status,
java.lang.Object txId,
java.lang.Throwable cause)
|
ResourceManagerException(java.lang.String message,
int status,
java.lang.Throwable cause)
|
ResourceManagerException(java.lang.String message,
java.lang.Throwable cause)
|
Method Summary |
protected static java.lang.String |
composeMessage(java.lang.String msg,
int status,
java.lang.Object txId)
|
protected static java.lang.String |
composeMessage(java.lang.String msg,
int status,
java.lang.Object txId,
java.lang.Throwable cause)
|
int |
getStatus()
|
static java.lang.String |
statusToCode(int status)
|
java.lang.String |
statusToString()
|
static java.lang.String |
statusToText(int status)
|
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 |
ERR_UNKNOWN_TEXT
public static final java.lang.String ERR_UNKNOWN_TEXT
- See Also:
- Constant Field Values
ERR_UNKNOWN_CODE
public static final java.lang.String ERR_UNKNOWN_CODE
- See Also:
- Constant Field Values
status
protected final int status
txId
protected final java.lang.Object txId
ResourceManagerException
public ResourceManagerException(java.lang.String message,
int status,
java.lang.Object txId)
ResourceManagerException
public ResourceManagerException(int status,
java.lang.Object txId)
ResourceManagerException
public ResourceManagerException(java.lang.String message)
ResourceManagerException
public ResourceManagerException(java.lang.String message,
int status,
java.lang.Object txId,
java.lang.Throwable cause)
ResourceManagerException
public ResourceManagerException(java.lang.String message,
int status,
java.lang.Throwable cause)
ResourceManagerException
public ResourceManagerException(java.lang.String message,
java.lang.Throwable cause)
ResourceManagerException
public ResourceManagerException(int status,
java.lang.Object txId,
java.lang.Throwable cause)
composeMessage
protected static final java.lang.String composeMessage(java.lang.String msg,
int status,
java.lang.Object txId,
java.lang.Throwable cause)
composeMessage
protected static final java.lang.String composeMessage(java.lang.String msg,
int status,
java.lang.Object txId)
statusToText
public static final java.lang.String statusToText(int status)
statusToCode
public static final java.lang.String statusToCode(int status)
statusToString
public java.lang.String statusToString()
getStatus
public int getStatus()
Copyright © 2004-2007 The Apache Software Foundation. All Rights Reserved.