Neodriver_core.ErrorsError taxonomy (server and driver errors).
Error taxonomy for the Neo4j driver.
See errors.ml for the implementation.
type server_error = {code : string;message : string;classification : classification;retryable : bool;}A server (Neo4j) error as reported over the wire.
type t = | Neo4j of server_error| Session_expired of string| Incomplete_commit of string| Session_error of string| Transaction_error of string| Transaction_nesting_error of string| Result_failed_error of string| Result_consumed_error of string| Result_not_single_error of string| Broken_record_error of string| Configuration_error of string| Auth_configuration_error of string| Certificate_configuration_error of string| Unsupported_server_product of string| Connection_pool_error of string| Connection_acquisition_timeout of stringDriver and server errors.
*)All errors from a failed multi-address connection attempt: last is the most recent failure and all lists every failure in order of occurrence. The OCaml analogue of the Python driver's exception aggregation when no resolved address can be connected.
val is_retryable : t -> boolWhether an error is safe to retry a transaction after.
val of_neo4j_code : code:string -> message:string -> tBuild a server error from a neo4j code and message, applying the classification and legacy re-write maps.
val code : t -> string optionThe neo4j code of a server error, or None for driver errors.
val message : t -> stringThe message of an error.
val classification : t -> classification optionThe classification of a server error, or None for driver errors.
val unauthenticates_all_connections : t -> boolWhether the error invalidates the authentication of all connections (AuthorizationExpired).
val has_security_code : t -> boolWhether the error carries a Neo.ClientError.Security.* code.
val is_fatal_during_discovery : t -> boolWhether the error should fail fast during routing discovery.
val to_string : t -> stringRender an error as a human-readable string.
val classification_to_string : classification -> stringRender a classification as its neo4j string ("ClientError", ...).
val specific_to_string : specific -> stringRender a specific error kind as a string.