Package org.apache.qpid.server
Class AMQException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- org.apache.qpid.server.QpidException
-
- org.apache.qpid.server.AMQException
-
- All Implemented Interfaces:
java.io.Serializable
- Direct Known Subclasses:
AMQConnectionException,AMQFrameDecodingException
public class AMQException extends QpidException
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description AMQException(int errorCode, boolean isHardError, java.lang.String message, java.lang.Throwable cause)AMQException(int errorCode, java.lang.String message)AMQException(int errorCode, java.lang.String msg, java.lang.Throwable cause)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AMQExceptioncloneForCurrentThread()Rethrown this exception as a new exception.intgetErrorCode()booleanisHardError()java.lang.StringtoString()-
Methods inherited from class org.apache.qpid.server.QpidException
clone
-
-
-
-
Constructor Detail
-
AMQException
public AMQException(int errorCode, java.lang.String message)
-
AMQException
public AMQException(int errorCode, java.lang.String msg, java.lang.Throwable cause)
-
AMQException
public AMQException(int errorCode, boolean isHardError, java.lang.String message, java.lang.Throwable cause)
-
-
Method Detail
-
toString
public java.lang.String toString()
- Overrides:
toStringin classQpidException
-
getErrorCode
public int getErrorCode()
-
isHardError
public boolean isHardError()
-
cloneForCurrentThread
public AMQException cloneForCurrentThread()
Description copied from class:QpidExceptionRethrown this exception as a new exception. Attempt to create a new exception of the same class if they have the default constructor of: {String, Throwable}.- Overrides:
cloneForCurrentThreadin classQpidException- Returns:
- cloned exception
-
-