package bimage

  1. Overview
  2. Docs
type t = [
  1. | `Invalid_shape
  2. | `Invalid_kernel_shape of int * int
  3. | `Invalid_input of int
  4. | `Invalid_layout
  5. | `Invalid_color
  6. | `Msg of string
]
exception Exc of t
val exc : t -> 'a

Raises an Exc with the provided Error.t

val to_string : t -> string

Returns a string representation of an Error.t

val unwrap : ('a, t) result -> 'a

A convenience function that returns the Ok value of a result if possible, otherwise it raises the Error value

val string_of_exn : exn -> string
OCaml

Innovation. Community. Security.