Package io.jawk.jrt
Class AwkRuntimeException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
io.jawk.jrt.AwkRuntimeException
- All Implemented Interfaces:
Serializable
A runtime exception thrown by Jawk. It is provided
to conveniently distinguish between Jawk runtime
exceptions and other runtime exceptions.
- Author:
- Danny Daglas
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionAwkRuntimeException(int lineno, String msg) Constructor for AwkRuntimeException.AwkRuntimeException(int lineno, String msg, Throwable cause) Creates a runtime exception tied to a source line and a root cause.Constructor for AwkRuntimeException.AwkRuntimeException(String msg, Throwable cause) Creates a runtime exception with a message and root cause but without a specific source line. -
Method Summary
Modifier and TypeMethodDescriptionintReturns the line number associated with this exception or-1if unavailable.Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
AwkRuntimeException
Constructor for AwkRuntimeException.
- Parameters:
msg- aStringobject
-
AwkRuntimeException
Creates a runtime exception with a message and root cause but without a specific source line.- Parameters:
msg- Failure messagecause- Root cause
-
AwkRuntimeException
Constructor for AwkRuntimeException.
- Parameters:
lineno- a intmsg- aStringobject
-
AwkRuntimeException
Creates a runtime exception tied to a source line and a root cause.- Parameters:
lineno- AWK source line associated with the failuremsg- Failure messagecause- Root cause
-
-
Method Details
-
getLineNumber
public int getLineNumber()Returns the line number associated with this exception or-1if unavailable.- Returns:
- the offending line number or
-1
-