AvailRejectedParseException

An AvailRejectedParseException is thrown by primitive P_RejectParsing to indicate the fiber running a semantic restriction (or macro body or prefix function) has rejected the argument types or phrases for the reason specified in the exception's constructor.

Author

Todd L Smith

Constructors

Link copied to clipboard
constructor(level: CompilerDiagnostics.ParseNotificationLevel, rejectionString: A_String)

Construct a new instance. If this diagnostic is deemed relevant, the string will be presented after the word "Expected...".

constructor(level: CompilerDiagnostics.ParseNotificationLevel, rejectionPattern: String, vararg rejectionArguments: Any)

Construct a new instance with a Java String as the pattern for the explanation, and arguments to be substituted into the pattern. If this diagnostic is deemed relevant, the string will be presented after the word "Expected...".

constructor(level: CompilerDiagnostics.ParseNotificationLevel, supplier: () -> A_String)

Construct a new instance the most general way, with a function to produce an Avail string as needed. If this diagnostic is deemed relevant, the string will be presented after the word "Expected...".

Properties

Link copied to clipboard
open val cause: Throwable?
Link copied to clipboard

The ParseNotificationLevel that indicates the priority of the parse theory that failed.

Link copied to clipboard
open val message: String?
Link copied to clipboard

The error message indicating why a particular parse was rejected.

Link copied to clipboard

Produce a String representation of the stack trace captured in this Throwable.

Functions

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard