Module Hexaly.Error

type code =
  1. | Api
    (*

    Programmer error against the API contract.

    *)
  2. | File
    (*

    File I/O failure.

    *)
  3. | Model
    (*

    Modeling error (invalid expression structure, post-close mutation, ...).

    *)
  4. | Callback
    (*

    Failure inside a registered callback.

    *)
  5. | License
    (*

    License missing, expired, or invalid.

    *)
  6. | Solver
    (*

    Solver runtime failure.

    *)
  7. | Internal
    (*

    Internal Hexaly assertion or unexpected exception.

    *)
  8. | Modeler
    (*

    Hexaly Modeler (HXM) error.

    *)
  9. | Cloud
    (*

    Hexaly Cloud connectivity.

    *)

Mirror of Hexaly's HxErrorCode.

val code_to_string : code -> string
val pp_code : Stdlib.Format.formatter -> code -> unit