Class CommandRejectedException

java.lang.Object
java.lang.Throwable
java.lang.Exception
org.lsst.ccs.messaging.CommandRejectedException
All Implemented Interfaces:
Serializable

public final class CommandRejectedException extends Exception
Exception thrown by utility classes to indicate that a command has been rejected. It internally contains The CommandNack that caused the rejection.
Author:
The LSST CCS Team
See Also:
  • Constructor Details

    • CommandRejectedException

      public CommandRejectedException(CommandNack negativeAck)
      Construct a CommandRejectedException from the corresponding CommandNack.
      Parameters:
      negativeAck - The CommandNack that explains the rejection.
  • Method Details

    • getCommandNack

      public CommandNack getCommandNack()
      Get the CommandNack that explains the rejection of the command.
      Returns:
      The CommandNack.
    • toString

      public String toString()
      Overrides:
      toString in class Throwable