public class AMQException extends Exception
| Constructor and Description |
|---|
AMQException(AMQConstant errorCode,
boolean isHardError,
String msg,
Throwable cause)
Creates an exception with an optional error code, optional message and optional underlying cause.
|
AMQException(AMQConstant errorCode,
String msg) |
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.
|
| Modifier and Type | Method and Description |
|---|---|
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() |
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTracepublic 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.public AMQException(AMQConstant errorCode, boolean isHardError, String msg, Throwable cause)
errorCode - The error code. May be null if not to be set.isHardError - Denotes if the underlying error is considered a hard error.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)
public AMQException(AMQConstant errorCode, String msg)
@Deprecated public AMQException(String msg, Throwable cause)
public AMQConstant getErrorCode()
public boolean isHardError()
public AMQException cloneForCurrentThread()
Copyright © 2006–2015 The Apache Software Foundation. All rights reserved.