Package tech.ixor.calclox
Class RuntimeError
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
tech.ixor.calclox.RuntimeError
- All Implemented Interfaces:
Serializable
Internal execution failure paired with the token that caused it.
- See Also:
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionRuntimeError(Token token, String message) Creates an internal runtime failure. -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Field Details
-
token
Token used to report the failure's source line.
-
-
Constructor Details
-
RuntimeError
Creates an internal runtime failure.- Parameters:
token- token responsible for the failuremessage- user-facing error description
-