package ssl

  1. Overview
  2. Docs

Module Ssl.ErrorSource

Sourcetype t = private {
  1. code : int;
  2. lib : string option;
  3. reason : string option;
}
Sourceval get_error : unit -> t

Retrieve the earliest error from the error queue then it removes the entry. Returns the code and library and reason strings

Sourceval peek_error : unit -> t

Retrieve the earliest error from the error queue without modifying it. Returns the code and library and reason strings

Sourceval peek_last_error : unit -> t

Retrieves the latest error code from the thread's error queue without modifying it. Returns the code and library and reason strings.