AltErgoLib.Errors
This module aims to regroup all exception that can be raised by the Alt-Ergo-lib
Error that can be raised by the typechecker
Errors raised when performing actions forbidden in some modes.
Errors raised while using models.
type error =
| Typing_error of Loc.t * typing_error
Error used at typing
*)| Run_error of run_error
Error used during solving
*)| Warning_as_error
| Dolmen_error of int * string
Error code + description raised by dolmen.
*)| Mode_error of Util.mode * mode_error
Error used when performing actions forbidden in some modes.
*)| Model_error of model_error
Error raised while using models.
*)All types of error that can be raised
exception Error of error
val typing_error : typing_error -> Loc.t -> 'a
Raise the input typing_error
as Typing_error
Raise Warning_as_error
as Error
if the option warning-as-error is set This function can be use after warning
val invalid_set_option : Util.mode -> string -> 'a
Raise Mode_error (Invalid_set_option str)
as Error
if an option is being set when it should be immutable.
val forbidden_command : Util.mode -> string -> 'a
Raise Mode_error (Forbidden_command str)
as Error
if a command is being used in a mode where it should not be available.
val report : Stdlib.Format.formatter -> error -> unit
Print a message on the formatter corresponding to the error