public class

ShutdownSignalException

extends RuntimeException
implements SensibleClone<T extends SensibleClone<T>>
java.lang.Object
   ↳ java.lang.Throwable
     ↳ java.lang.Exception
       ↳ java.lang.RuntimeException
         ↳ com.rabbitmq.client.ShutdownSignalException
Known Direct Subclasses

Class Overview

Encapsulates a shutdown condition for a connection to an AMQP broker. Depending on HardError when calling getReference() we will either get a reference to the Connection or Channel instance that fired this exception.

Summary

Public Constructors
ShutdownSignalException(boolean hardError, boolean initiatedByApplication, Object reason, Object ref)
Construct a ShutdownSignalException from the arguments.
Public Methods
Object getReason()
Object getReference()
boolean isHardError()
boolean isInitiatedByApplication()
ShutdownSignalException sensibleClone()
Like Object.clone but sensible; in particular, public and declared to return the right type.
[Expand]
Inherited Methods
From class java.lang.Throwable
From class java.lang.Object
From interface com.rabbitmq.utility.SensibleClone

Public Constructors

public ShutdownSignalException (boolean hardError, boolean initiatedByApplication, Object reason, Object ref)

Construct a ShutdownSignalException from the arguments.

Parameters
hardError the relevant hard error
initiatedByApplication if the shutdown was client-initiated
reason Object describing the origin of the exception
ref Reference to Connection or Channel that fired the signal

Public Methods

public Object getReason ()

Returns
  • the reason object, if any

public Object getReference ()

Returns
  • Reference to Connection or Channel object that fired the signal

public boolean isHardError ()

Returns
  • true if this signals a connection error, or false if a channel error

public boolean isInitiatedByApplication ()

Returns
  • true if this exception was caused by explicit application action; false if it originated with the broker or as a result of detectable non-deliberate application failure

public ShutdownSignalException sensibleClone ()

Like Object.clone but sensible; in particular, public and declared to return the right type.