Class KillRobotException

java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
frc.spectrumLib.util.exceptions.KillRobotException
All Implemented Interfaces:
Serializable

public class KillRobotException extends RuntimeException
Unchecked exception thrown to signal that the robot code should stop executing immediately. Intended for unrecoverable error states where continued operation would be unsafe.
See Also:
  • Constructor Details

    • KillRobotException

      public KillRobotException(String message)
      Creates a KillRobotException with a descriptive message.
      Parameters:
      message - explanation of the condition that triggered the kill
    • KillRobotException

      public KillRobotException(Throwable cause)
      Creates a KillRobotException wrapping an underlying cause.
      Parameters:
      cause - the original exception that led to this kill condition
    • KillRobotException

      public KillRobotException(String message, Throwable throwable)
      Creates a KillRobotException with both a message and an underlying cause.
      Parameters:
      message - explanation of the condition that triggered the kill
      throwable - the original exception that led to this kill condition