package ocaml-ai-sdk

  1. Overview
  2. Docs
Legend:
Page
Library
Module
Module type
Parameter
Class
Class type
Source

Module Ai_provider.Provider_errorSource

Errors from provider API calls.

Sourcetype error_kind =
  1. | Api_error of {
    1. status : int;
    2. body : string;
    }
  2. | Network_error of {
    1. message : string;
    }
  3. | Deserialization_error of {
    1. message : string;
    2. raw : string;
    }
Sourcetype t = {
  1. provider : string;
  2. kind : error_kind;
}
Sourceexception Provider_error of t
Sourceval to_string : t -> string