|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.lang.Throwable
java.lang.Exception
org.apache.qpid.AMQException
public class AMQException
AMQException forms the root exception of all exceptions relating to the AMQ protocol. It provides space to associate a required AMQ error code with the exception, which is a numeric value, with a meaning defined by the protocol.
Responsibilities | Collaborations |
---|---|
Represents an exception condition associated with an AMQ protocol status code. |
Constructor Summary | |
---|---|
AMQException(AMQConstant errorCode,
String msg)
Deprecated. |
|
AMQException(AMQConstant errorCode,
String msg,
Throwable cause)
Creates an exception with an optional error code, optional message and optional underlying cause. |
|
AMQException(String msg)
Deprecated. |
|
AMQException(String msg,
Throwable cause)
Deprecated. |
Method Summary | |
---|---|
AMQException |
cloneForCurrentThread()
Rethrown this exception as a new exception. |
AMQConstant |
getErrorCode()
Gets the AMQ protocol exception code associated with this exception. |
boolean |
isHardError()
|
String |
toString()
|
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 |
Constructor Detail |
---|
public AMQException(AMQConstant errorCode, String msg, Throwable cause)
errorCode
- The error code. May be null if not to be set.msg
- The exception message. May be null if not to be set.cause
- The underlying cause of the exception. May be null if not to be set.@Deprecated public AMQException(String msg)
@Deprecated public AMQException(AMQConstant errorCode, String msg)
@Deprecated public AMQException(String msg, Throwable cause)
Method Detail |
---|
public String toString()
toString
in class Throwable
public AMQConstant getErrorCode()
public boolean isHardError()
public AMQException cloneForCurrentThread()
Individual subclasses may override as requried to create a new instance.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |