LlamaLib  v2.0.2
Cross-platform library for local LLMs
Loading...
Searching...
No Matches
ErrorStateRegistry Class Reference

Error state registry for managing shared error state. More...

#include <error_handling.h>

Static Public Member Functions

static void inject_error_state (ErrorState *state)
 Inject a custom error state instance.
 
static ErrorStateget_error_state ()
 Get the error state instance.
 

Detailed Description

Error state registry for managing shared error state.

Definition at line 28 of file error_handling.h.

Member Function Documentation

◆ get_error_state()

static ErrorState & ErrorStateRegistry::get_error_state ( )
inlinestatic

Get the error state instance.

Returns
Reference to the error state instance

Definition at line 41 of file error_handling.h.

Here is the caller graph for this function:

◆ inject_error_state()

static void ErrorStateRegistry::inject_error_state ( ErrorState * state)
inlinestatic

Inject a custom error state instance.

Parameters
stateCustom error state instance to use

Allows error state injection when using different dynamic libraries

Definition at line 34 of file error_handling.h.


The documentation for this class was generated from the following files: