Base class for all exceptions thrown by Spac parsers.
A SpacException
holds a spacTrace
, which is similar to a stack trace, but uses a specialized element type
to hold helpful debug information about the cause and context of the exception, and the input that caused it.
SpacException uses NoStackTrace
to suppress the usual stack trace, since exceptions thrown by a Parser
will not have useful stack trace information for end users of the Spac framework.
- Type parameters:
- Self
self-type used in the type signature of
withSpacTrace
- Value parameters:
- detail
a
Left
containing a spac-specific error message, or aRight
containing some non-Spac exception that was caught inside a Parser- spacTrace
chain of SpacTraceElements, with the "top" of the stack at the beginning, and the "bottom" of the stack at the end
- Companion:
- object
Value members
Constructors
Abstract methods
Concrete methods
Used internally by the framework, typically in a Transformer.Handler's unwind
method
Used internally by the framework, typically in a Transformer.Handler's unwind
method
Used internally by the framework, typically in a Transformer.Handler's unwind
method
Used internally by the framework, typically in a Transformer.Handler's unwind
method
Used internally by the framework, typically in a Transformer.Handler's unwind
method
Used internally by the framework, typically in a Transformer.Handler's unwind
method