Class AlertException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.wpilib.util.AlertException
- All Implemented Interfaces:
Serializable
Exception thrown to indicate an alert condition with an associated reason code.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionAlertException(String message, int reason) Constructs a new AlertException with the specified detail message and reason code. -
Method Summary
Modifier and TypeMethodDescriptionintGets the reason code associated with this exception.Methods inherited from class Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
AlertException
Constructs a new AlertException with the specified detail message and reason code.- Parameters:
message- the detail messagereason- the reason code associated with this exception
-
-
Method Details
-
getReason
public int getReason()Gets the reason code associated with this exception.- Returns:
- the reason code
-