Error Handling for Parsing and Validation #
This file implements error handling for the parsers and the validator.
Equations
- One or more equations did not get rendered due to their size.
Instances For
- parseUnexpected : String.Slice → Error
- unvalid : String → Error
- addMessage : Error → Option String.Slice → String → Error
Instances For
Equations
- One or more equations did not get rendered due to their size.
Equations
Instances For
Equations
- Validator.Error.instToString = { toString := Validator.Error.toString }
@[reducible, inline]
Equations
- Validator.Result α p = Except Validator.Error { a : α // p a }
Instances For
@[reducible, inline]
Equations
- Validator.Result' p = Validator.Result Unit fun (x : Unit) => p
Instances For
Equations
- Validator.throwUnvalid msg = throw (Validator.Error.unvalid msg)
Instances For
Equations
- Validator.withErrorMessage none x✝ = x✝
- Validator.withErrorMessage (some msg) x✝ = tryCatch x✝ fun (e : Validator.Error) => throw (e.addMessage none msg)