tblite
Light-weight tight-binding framework
Loading...
Searching...
No Matches
error.h File Reference

Provides a light-weight error handler for communicating with the library. More...

#include "tblite/macros.h"

Go to the source code of this file.

Typedefs

typedef struct _tblite_error * tblite_error
 Error instance.
 

Functions

TBLITE_API_ENTRY tblite_error TBLITE_API_CALL tblite_new_error (void)
 Create new error handle object.
 
TBLITE_API_ENTRY void TBLITE_API_CALL tblite_delete_error (tblite_error *)
 Delete an error handle object.
 
TBLITE_API_ENTRY int TBLITE_API_CALL tblite_check_error (tblite_error)
 Check error handle status.
 
TBLITE_API_ENTRY void TBLITE_API_CALL tblite_clear_error (tblite_error)
 Clear error handle status.
 
TBLITE_API_ENTRY void TBLITE_API_CALL tblite_get_error (tblite_error, char *, const int *)
 Get error message from error handle.
 
TBLITE_API_ENTRY void TBLITE_API_CALL tblite_set_error (tblite_error, char *, const int *)
 Set error message to error handle.
 

Detailed Description

Provides a light-weight error handler for communicating with the library.

The library provides two different kinds handlers, a light error handle type tblite_error is defined here.

The error handle is used in the context of simple tasks and requires only small overhead to construct and use. It is mainly used in the context of retrieving data or building structures.