Class SSSOMTransformError

java.lang.Object
java.lang.Throwable
java.lang.Exception
org.incenp.obofoundry.sssom.transform.SSSOMTransformError
All Implemented Interfaces:
Serializable

public class SSSOMTransformError extends Exception
A syntax error encountered when parsing a SSSOM/T ruleset.
See Also:
  • Constructor Details

    • SSSOMTransformError

      public SSSOMTransformError(int line, int column, String message)
      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

      public SSSOMTransformError(String message)
      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

      public SSSOMTransformError(String message, Object... args)
      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.