Package org.metricshub.jawk.jrt
Class AwkRuntimeException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.metricshub.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) Constructor for AwkRuntimeException.AwkRuntimeException(String msg, Throwable cause) -
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
-
Method Details
-
getLineNumber
public int getLineNumber()Returns the line number associated with this exception or-1if unavailable.- Returns:
- the offending line number or
-1
-