Package dev.omnist.algebra
Class AlgebraException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
java.lang.IllegalArgumentException
dev.omnist.algebra.AlgebraException
- All Implemented Interfaces:
Serializable
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 Summary
ConstructorsConstructorDescriptionAlgebraException(String path, String code, String message) Constructs an algebra exception with path, code, and message.AlgebraException(String path, String code, String message, Throwable cause) Constructs an algebra exception with path, code, message, and cause. -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
AlgebraException
Constructs an algebra exception with path, code, and message.- Parameters:
path- the schema element path where the violation was detected; use"$"for root-level errorscode- the machine-readable error code identifying the error categorymessage- human-readable explanation of the error
-
AlgebraException
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 errorscode- the machine-readable error code identifying the error categorymessage- human-readable explanation of the errorcause- the underlying exception
-
-
Method Details
-
getPath
Returns the schema element path where the error was detected. -
getCode
Returns the machine-readable error code identifying the violation category.
-