Imandrakit_error.ErrorUniversal error type for Imandrakit.
Exposes the standard errors that Imandrakit can raise.
include module type of Error_coreA message.
An error message is emitted at a particular place in the code. An error can contain several error messages.
val message_to_twine : message Imandrakit_twine.Encode.encoderval message_of_twine : message Imandrakit_twine.Decode.decodertype stack = message listval pp :
Ppx_deriving_runtime.Format.formatter ->
t ->
Ppx_deriving_runtime.unitval show : t -> Ppx_deriving_runtime.stringval to_twine : t Imandrakit_twine.Encode.encoderval of_twine : t Imandrakit_twine.Decode.decoderexception E of tInternal error
val pp_with : show_process:bool -> t Imandrakit_common.Fmt.printermodule Message : sig ... endval raise_err : ?bt:Stdlib.Printexc.raw_backtrace -> t -> 'aval guard : ?let_pass:(exn -> bool) -> (unit -> message) -> (unit -> 'a) -> 'aguard g f behaves like f(), excepts that if f() raises Error e, guard g f raises Error e' where e' wraps e with context error g().
val pp_result :
(Ppx_deriving_runtime.Format.formatter -> 'a -> Ppx_deriving_runtime.unit) ->
Ppx_deriving_runtime.Format.formatter ->
'a result ->
Ppx_deriving_runtime.unitval show_result :
(Ppx_deriving_runtime.Format.formatter -> 'a -> Ppx_deriving_runtime.unit) ->
'a result ->
Ppx_deriving_runtime.stringval iter_result :
('a -> Ppx_deriving_runtime.unit) ->
'a result ->
Ppx_deriving_runtime.unitval result_to_twine :
'a Imandrakit_twine.Encode.encoder ->
'a result Imandrakit_twine.Encode.encoderval result_of_twine :
'a Imandrakit_twine.Decode.decoder ->
'a result Imandrakit_twine.Decode.decodermodule Infix : sig ... endmodule Kind = Kindfail "some error message" raises an error with the given message
val failf :
?stack:message list ->
?process:string ->
?bt:string ->
kind:Kind.t ->
('a, Stdlib.Format.formatter, unit, 'b) format4 ->
'aerrorf "some error message %s (number %d)" "with formatting" 42 raises an error with the given formatted message
val mk_errorf :
?stack:message list ->
?process:string ->
?bt:string ->
kind:Kind.t ->
('a, Stdlib.Format.formatter, unit, t) format4 ->
'aval message : ?bt:string -> string -> messageval messagef :
?bt:string ->
('a, Stdlib.Format.formatter, unit, message) format4 ->
'aval guardf :
?let_pass:(exn -> bool) ->
((('a, Stdlib.Format.formatter, unit, message) format4 -> 'a) -> message) ->
(unit -> 'b) ->
'bguardf ~loc k f behaves like f(), but will call k to produce a contextual message in case of error.
val of_exn : ?bt:Stdlib.Printexc.raw_backtrace -> kind:Kind.t -> exn -> tTurn exception into an error.