Class SSSOMTransformError
java.lang.Object
java.lang.Throwable
java.lang.Exception
org.incenp.obofoundry.sssom.transform.SSSOMTransformError
- All Implemented Interfaces:
Serializable
A syntax error encountered when parsing a SSSOM/T ruleset.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionSSSOMTransformError
(int line, int column, String message) Creates a new instance with an error message from the ANTLR parser.SSSOMTransformError
(String message) Creates a new instance for an application-specific error.SSSOMTransformError
(String message, Object... args) Creates a new instance for an application-specific errors. -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
SSSOMTransformError
Creates a new instance with an error message from the ANTLR parser.- Parameters:
line
- The line number where the error occurred.column
- The position in the line where the error occurred.message
- The error message from the ANTLR parser.
-
SSSOMTransformError
Creates a new instance for an application-specific error. For those errors we no longer have line and column positions.- Parameters:
message
- The application-specific instruction that could not be parsed.
-
SSSOMTransformError
Creates a new instance for an application-specific errors.This is merely a convenience constructor and is equivalent to
SSSOMTransformError(String.format(message, args))
.- Parameters:
message
- The application-specific error message, as a format string.args
- Arguments to insert into the format string.
-