Imandrakit_error.Error_core
Universal error type for Imandrakit.
A 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.encoder
val message_of_twine : message Imandrakit_twine.Decode.decoder
type stack = message list
val pp :
Ppx_deriving_runtime.Format.formatter ->
t ->
Ppx_deriving_runtime.unit
val show : t -> Ppx_deriving_runtime.string
val to_twine : t Imandrakit_twine.Encode.encoder
val of_twine : t Imandrakit_twine.Decode.decoder
exception E of t
Internal error
val pp_with : show_process:bool -> t Imandrakit_common.Fmt.printer
module Message : sig ... end
val raise_err : ?bt:Stdlib.Printexc.raw_backtrace -> t -> 'a
val guard : ?let_pass:(exn -> bool) -> (unit -> message) -> (unit -> 'a) -> 'a
guard 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.unit
val show_result :
(Ppx_deriving_runtime.Format.formatter -> 'a -> Ppx_deriving_runtime.unit) ->
'a result ->
Ppx_deriving_runtime.string
val iter_result :
('a -> Ppx_deriving_runtime.unit) ->
'a result ->
Ppx_deriving_runtime.unit
val result_to_twine :
'a Imandrakit_twine.Encode.encoder ->
'a result Imandrakit_twine.Encode.encoder
val result_of_twine :
'a Imandrakit_twine.Decode.decoder ->
'a result Imandrakit_twine.Decode.decoder
module Infix : sig ... end