com.rabbitmq.client
public class ShutdownSignalException extends java.lang.RuntimeException implements SensibleClone<ShutdownSignalException>
getReference() we will
either get a reference to the Connection or Channel instance that fired
this exception.| Constructor and Description |
|---|
ShutdownSignalException(boolean hardError,
boolean initiatedByApplication,
Method reason,
java.lang.Object ref)
Construct a ShutdownSignalException from the arguments.
|
ShutdownSignalException(boolean hardError,
boolean initiatedByApplication,
Method reason,
java.lang.Object ref,
java.lang.String messagePrefix,
java.lang.Throwable cause)
Construct a ShutdownSignalException from the arguments.
|
| Modifier and Type | Method and Description |
|---|---|
Method |
getReason() |
java.lang.Object |
getReference() |
boolean |
isHardError() |
boolean |
isInitiatedByApplication() |
ShutdownSignalException |
sensibleClone()
Like Object.clone but sensible; in particular, public and declared to return
the right type.
|
public ShutdownSignalException(boolean hardError,
boolean initiatedByApplication,
Method reason,
java.lang.Object ref)
hardError - the relevant hard errorinitiatedByApplication - if the shutdown was client-initiatedreason - AMQP method describing the exception reasonref - Reference to Connection or Channel that fired the signalpublic ShutdownSignalException(boolean hardError,
boolean initiatedByApplication,
Method reason,
java.lang.Object ref,
java.lang.String messagePrefix,
java.lang.Throwable cause)
hardError - the relevant hard errorinitiatedByApplication - if the shutdown was client-initiatedreason - AMQP method describing the exception reasonref - Reference to Connection or Channel that fired the signalmessagePrefix - prefix to add to exception messagepublic boolean isHardError()
public boolean isInitiatedByApplication()
public Method getReason()
public java.lang.Object getReference()
public ShutdownSignalException sensibleClone()
SensibleClonesensibleClone in interface SensibleClone<ShutdownSignalException>