Package io.jawk.jrt

Class AwkRuntimeException

All Implemented Interfaces:
Serializable

public class AwkRuntimeException extends RuntimeException
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 Details

    • AwkRuntimeException

      public AwkRuntimeException(String msg)

      Constructor for AwkRuntimeException.

      Parameters:
      msg - a String object
    • AwkRuntimeException

      public AwkRuntimeException(String msg, Throwable cause)
      Creates a runtime exception with a message and root cause but without a specific source line.
      Parameters:
      msg - Failure message
      cause - Root cause
    • AwkRuntimeException

      public AwkRuntimeException(int lineno, String msg)

      Constructor for AwkRuntimeException.

      Parameters:
      lineno - a int
      msg - a String object
    • AwkRuntimeException

      public AwkRuntimeException(int lineno, String msg, Throwable cause)
      Creates a runtime exception tied to a source line and a root cause.
      Parameters:
      lineno - AWK source line associated with the failure
      msg - Failure message
      cause - Root cause
  • Method Details

    • getLineNumber

      public int getLineNumber()
      Returns the line number associated with this exception or -1 if unavailable.
      Returns:
      the offending line number or -1