public class ShutdownSignalException extends 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,
Object ref)
Construct a ShutdownSignalException from the arguments.
|
ShutdownSignalException(boolean hardError,
boolean initiatedByApplication,
Method reason,
Object ref,
String messagePrefix,
Throwable cause)
Construct a ShutdownSignalException from the arguments.
|
Modifier and Type | Method and Description |
---|---|
Method |
getReason() |
Object |
getReference() |
boolean |
isHardError() |
boolean |
isInitiatedByApplication() |
ShutdownSignalException |
sensibleClone()
Like Object.clone but sensible; in particular, public and declared to return
the right type.
|
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public ShutdownSignalException(boolean hardError, boolean initiatedByApplication, Method reason, 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, Object ref, String messagePrefix, 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 Object getReference()
public ShutdownSignalException sensibleClone()
SensibleClone
sensibleClone
in interface SensibleClone<ShutdownSignalException>
Copyright © 2022 VMware, Inc. or its affiliates.. All rights reserved.