Documentation

Validator.Error

Error Handling for Parsing and Validation #

This file implements error handling for the parsers and the validator.

Instances For
    @[implicit_reducible]
    Equations
    • One or more equations did not get rendered due to their size.

    The type of errors used in the certificate parser and checker.

    • invalidId (T : IndexType) (Eᵢ : ) : Error

      The certificate is invalid because there is no identifier Eᵢ for type T.

    • invalidIds (T : IndexType) (ids : List ) : Error

      The certificate is invalid because the given identifers are invalid for type T.

    • unexpectedId (T : IndexType) (expected found : ) : Error

      The certificate is invalid because some id in the certificat did not match the expected id.

    • unexpected (T : IndexType) (Eᵢ : ) (expected found : String) : Error

      The certificate is invalid because the expression with Eᵢ was used when an expression with a different format was expected.

    • notSubset (T : IndexType) (E1ᵢ E2ᵢ : ) : Error
    • unsupportedB4 (R R' : StateSetFormalism) : Error
    • noUnsolvability : Error
    • bddError (path : System.FilePath) (e : IO.Error) : Error

      An error occured while parsing the given bdd file.

    • parseUnexpected (s : String) (pos : String.Pos.Raw) : Error

      An unexpected character was found at the given position while parsing the string s.

    • addMessage (e : Error) (pos : Option (String × String.Pos.Raw)) (msg : String) : Error

      Add an error message to the error e, with the possibility of specifiying the position in case of a parsing error.

    Instances For
      @[implicit_reducible]
      Equations
      • One or more equations did not get rendered due to their size.
      @[reducible, inline]
      abbrev Validator.Result (α : Type u) (p : αProp) :
      Equations
      Instances For
        @[reducible, inline]
        Equations
        Instances For
          def Validator.withErrorMessage {α : Type u_1} {p : αProp} :
          Option StringResult α pResult α p
          Equations
          Instances For