public enum Exception: Error, CustomStringConvertible
This error type gets thrown if errors are found during parsing.
- reason: The details of the error.
The details of the error
- code: An integer number that references the error location
- incomplete: When true, the error occured because the parser ran out of characters.
- message: A textual description of the error.
case reason(code: Int, incomplete: Bool, message: String)
The textual description of the exception.
public var description: String