AvailRejectedParseException

class AvailRejectedParseException : PrimitiveThrownException

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
fun AvailRejectedParseException(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...".

Link copied to clipboard
fun AvailRejectedParseException(    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...".

Link copied to clipboard
fun AvailRejectedParseException(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...".

Functions

Link copied to clipboard
fun addSuppressed(p0: Throwable)
Link copied to clipboard
open fun fillInStackTrace(): Throwable
Link copied to clipboard
open fun getLocalizedMessage(): String
Link copied to clipboard
open fun getStackTrace(): Array<StackTraceElement>
Link copied to clipboard
fun getSuppressed(): Array<Throwable>
Link copied to clipboard
open fun initCause(p0: Throwable): Throwable
Link copied to clipboard
open fun printStackTrace()
open fun printStackTrace(p0: PrintStream)
open fun printStackTrace(p0: PrintWriter)
Link copied to clipboard
open fun setStackTrace(p0: Array<StackTraceElement>)

Properties

Link copied to clipboard
open val cause: Throwable?
Link copied to clipboard
val level: CompilerDiagnostics.ParseNotificationLevel

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

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

The error message indicating why a particular parse was rejected.