package octez-l2-libs

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type
type t =
  1. | Store_key_too_large
    (*

    The store key submitted as an argument of a host function exceeds the authorized limit. Has code `-1`.

    *)
  2. | Store_invalid_key
    (*

    The store key submitted as an argument of a host function cannot be parsed. Has code `-2`.

    *)
  3. | Store_not_a_value
    (*

    The contents (if any) of the store under the key submitted as an argument of a host function is not a value. Has code `-3`.

    *)
  4. | Store_invalid_access
    (*

    An access in a value of the durable storage has failed, supposedly out of bounds of a value. Has code `-4`.

    *)
  5. | Store_value_size_exceeded
    (*

    Writing a value has exceeded 2^31 bytes. Has code `-5`.

    *)
  6. | Memory_invalid_access
    (*

    An address is out of bound of the memory. Has code `-6`.

    *)
  7. | Input_output_too_large
    (*

    The input or output submitted as an argument of a host function exceeds the authorized limit. Has code `-7`.

    *)
  8. | Generic_invalid_access
    (*

    Generic error code for unexpected errors. Has code `-8`.

    *)
  9. | Store_readonly_value
    (*

    A value cannot be modified if it is readonly. Has code `-9`.

    *)
  10. | Store_not_a_node
    (*

    There is no tree at key. It has no value, nor any subtrees. Has code `-10`.

    *)
  11. | Full_outbox
    (*

    The outbox is full an cannot accept new messages at this level. Has code `-11`.

    *)
  12. | Store_invalid_subkey_index
    (*

    Trying to get the nth subkey, where n is too big. Has code `-12`.

    *)
  13. | Store_value_already_exists
    (*

    Trying to create a value at a key that already has an associated value. Has code `-13`.

    *)
val code : t -> int32

code error returns the error code associated to the error.

OCaml

Innovation. Community. Security.