Module Preface_stdlib.Exn

Built-in exception used along Preface.

Types

type t = exn

Alias of exn as Exn.t.

Exceptions

Built-in exceptions.

exception Negative_position of int

Occurs when an integer should be positive.

Additional functions

Additional functions to facilitate practical work with Exn.t.

val check_position : int -> (int, t) Stdlib.result

Check if a position is positive.

val equal : t -> t -> bool

Equality between Exn.t.

val pp : Stdlib.Format.formatter -> t -> unit

Formatter for pretty-printing for Exn.t.