Class ShutdownSignalException

    • Constructor Detail

      • ShutdownSignalException

        public ShutdownSignalException​(boolean hardError,
                                       boolean initiatedByApplication,
                                       Method reason,
                                       Object ref)
        Construct a ShutdownSignalException from the arguments.
        Parameters:
        hardError - the relevant hard error
        initiatedByApplication - if the shutdown was client-initiated
        reason - AMQP method describing the exception reason
        ref - Reference to Connection or Channel that fired the signal
      • ShutdownSignalException

        public ShutdownSignalException​(boolean hardError,
                                       boolean initiatedByApplication,
                                       Method reason,
                                       Object ref,
                                       String messagePrefix,
                                       Throwable cause)
        Construct a ShutdownSignalException from the arguments.
        Parameters:
        hardError - the relevant hard error
        initiatedByApplication - if the shutdown was client-initiated
        reason - AMQP method describing the exception reason
        ref - Reference to Connection or Channel that fired the signal
        messagePrefix - prefix to add to exception message
    • Method Detail

      • isHardError

        public boolean isHardError()
        Returns:
        true if this signals a connection error, or false if a channel error
      • isInitiatedByApplication

        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
      • getReason

        public Method getReason()
        Returns:
        the reason, if any
      • getReference

        public Object getReference()
        Returns:
        Reference to Connection or Channel object that fired the signal