Package frc.spectrumLib.util.exceptions
Class KillRobotException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
frc.spectrumLib.util.exceptions.KillRobotException
- All Implemented Interfaces:
Serializable
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 Summary
ConstructorsConstructorDescriptionKillRobotException(String message) Creates a KillRobotException with a descriptive message.KillRobotException(String message, Throwable throwable) Creates a KillRobotException with both a message and an underlying cause.KillRobotException(Throwable cause) Creates a KillRobotException wrapping an underlying cause. -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
KillRobotException
Creates a KillRobotException with a descriptive message.- Parameters:
message- explanation of the condition that triggered the kill
-
KillRobotException
Creates a KillRobotException wrapping an underlying cause.- Parameters:
cause- the original exception that led to this kill condition
-
KillRobotException
Creates a KillRobotException with both a message and an underlying cause.- Parameters:
message- explanation of the condition that triggered the killthrowable- the original exception that led to this kill condition
-