Class AlgebraException

All Implemented Interfaces:
Serializable

public class AlgebraException extends IllegalArgumentException
Structured exception thrown when a schema algebra or inference operation fails (omnist-spec ยง6).

Callers that need to surface algebra/inference errors should inspect:

  • getPath() โ€” target schema element path where the error occurred (e.g. "$" or "MyRecord.myField")
  • getCode() โ€” machine-readable error code (e.g. algebra.extract-invalidates-root, algebra.infer-mixed-shape)
  • Throwable.getMessage() โ€” human-readable message explaining the violation
See Also:
  • Constructor Details

    • AlgebraException

      public AlgebraException(String path, String code, String message)
      Constructs an algebra exception with path, code, and message.
      Parameters:
      path - the schema element path where the violation was detected; use "$" for root-level errors
      code - the machine-readable error code identifying the error category
      message - human-readable explanation of the error
    • AlgebraException

      public AlgebraException(String path, String code, String message, Throwable cause)
      Constructs an algebra exception with path, code, message, and cause.
      Parameters:
      path - the schema element path where the violation was detected; use "$" for root-level errors
      code - the machine-readable error code identifying the error category
      message - human-readable explanation of the error
      cause - the underlying exception
  • Method Details

    • getPath

      public String getPath()
      Returns the schema element path where the error was detected.
    • getCode

      public String getCode()
      Returns the machine-readable error code identifying the violation category.