Class ParsingError
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
de.espirit.firstspirit.access.template.ParsingError
- All Implemented Interfaces:
Serializable
An error identifying a problem that occurred during a template parsing process.
- Since:
- 4.0
- See Also:
-
Constructor Summary
ConstructorDescriptionParsingError
(String message, int line, int col) Constructor taking the message and location of the problem.ParsingError
(String message, int line, int col, Throwable cause) Constructor taking the message, the location, and a cause of the original problem. -
Method Summary
Modifier and TypeMethodDescriptionfinal int
Provides the column where the problem occurred.Provides the original failure message.final int
getLine()
Provides the line where the problem occurred.Provides the error message.void
setMessage
(String value) Sets the error output message.Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
ParsingError
Constructor taking the message and location of the problem.- Parameters:
message
- The error message.line
- The line.col
- The column.- Since:
- 4.0
-
ParsingError
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
Provides the original failure message.- Returns:
- The message.
- Since:
- 4.0
-
setMessage
Sets the error output message.- Parameters:
value
- The message.- Since:
- 4.0
-
getMessage
Provides the error message.- Overrides:
getMessage
in classThrowable
- 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
-