Class ParsingError

java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
de.espirit.firstspirit.access.template.ParsingError
All Implemented Interfaces:
Serializable

public class ParsingError extends RuntimeException
An error identifying a problem that occurred during a template parsing process.
Since:
4.0
See Also:
  • Constructor Details

    • ParsingError

      public ParsingError(String message, int line, int col)
      Constructor taking the message and location of the problem.
      Parameters:
      message - The error message.
      line - The line.
      col - The column.
      Since:
      4.0
    • ParsingError

      public ParsingError(String message, int line, int col, Throwable cause)
      Constructor taking the message, the location, and a cause of the original problem.
      Parameters:
      message - The error message.
      line - The line.
      col - The column.
      cause - The causing exception.
      Since:
      4.0
  • Method Details

    • getFailure

      public String getFailure()
      Provides the original failure message.
      Returns:
      The message.
      Since:
      4.0
    • setMessage

      public void setMessage(String value)
      Sets the error output message.
      Parameters:
      value - The message.
      Since:
      4.0
    • getMessage

      public String getMessage()
      Provides the error message.
      Overrides:
      getMessage in class Throwable
      Returns:
      The message.
      Since:
      4.0
    • getLine

      public final int getLine()
      Provides the line where the problem occurred.
      Returns:
      The line.
      Since:
      4.0
    • getColumn

      public final int getColumn()
      Provides the column where the problem occurred.
      Returns:
      The column.
      Since:
      4.0