#include "tf_port_c.h"
Go to the source code of this file.
|
| HRESULT | tfError_getErr (struct tfErrorHandle *handle, HRESULT *err) |
| | Get the error code.
|
| |
| HRESULT | tfError_getMsg (struct tfErrorHandle *handle, char **msg, unsigned int *numChars) |
| | Get the error message.
|
| |
| HRESULT | tfError_getLineno (struct tfErrorHandle *handle, int *lineno) |
| | Get the originating line number.
|
| |
| HRESULT | tfError_getFname (struct tfErrorHandle *handle, char **fname, unsigned int *numChars) |
| | Get the originating file name.
|
| |
| HRESULT | tfError_getFunc (struct tfErrorHandle *handle, char **func, unsigned int *numChars) |
| | Get the originating function name.
|
| |
| HRESULT | tfErrSet (HRESULT code, const char *msg, int line, const char *file, const char *func) |
| |
| bool | tfErrOccurred () |
| |
| void | tfErrClear () |
| |
| HRESULT | tfErrStr (struct tfErrorHandle *handle, char **str, unsigned int *numChars) |
| |
| HRESULT | tfErrGetAll (struct tfErrorHandle ***handles, unsigned int *numErrors) |
| | Get all error indicators.
|
| |
| HRESULT | tfErrGetFirst (struct tfErrorHandle **handle) |
| |
| void | tfErrClearFirst () |
| |
| HRESULT | tfErrPopFirst (struct tfErrorHandle **handle) |
| |
◆ tfErrClear()
Clear the error indicator. If the error indicator is not set, there is no effect.
◆ tfErrClearFirst()
◆ tfErrGetAll()
| HRESULT tfErrGetAll |
( |
struct tfErrorHandle *** | handles, |
|
|
unsigned int * | numErrors ) |
Get all error indicators.
- Parameters
-
| handles | error indicators |
| numErrors | number of error indicators |
- Returns
- S_OK on success
◆ tfErrGetFirst()
◆ tfErrOccurred()
Check whether there is an error indicator.
◆ tfError_getErr()
| HRESULT tfError_getErr |
( |
struct tfErrorHandle * | handle, |
|
|
HRESULT * | err ) |
Get the error code.
- Parameters
-
| handle | populated handle |
| err | error code |
- Returns
- S_OK on success
◆ tfError_getFname()
| HRESULT tfError_getFname |
( |
struct tfErrorHandle * | handle, |
|
|
char ** | fname, |
|
|
unsigned int * | numChars ) |
Get the originating file name.
- Parameters
-
| handle | populated handle |
| fname | originating file name |
| numChars | number of characters of string representation |
- Returns
- S_OK on success
◆ tfError_getFunc()
| HRESULT tfError_getFunc |
( |
struct tfErrorHandle * | handle, |
|
|
char ** | func, |
|
|
unsigned int * | numChars ) |
Get the originating function name.
- Parameters
-
| handle | populated handle |
| func | originating function name |
| numChars | number of characters of string representation |
- Returns
- S_OK on success
◆ tfError_getLineno()
| HRESULT tfError_getLineno |
( |
struct tfErrorHandle * | handle, |
|
|
int * | lineno ) |
Get the originating line number.
- Parameters
-
| handle | populated handle |
| lineno | originating line number |
- Returns
- S_OK on success
◆ tfError_getMsg()
| HRESULT tfError_getMsg |
( |
struct tfErrorHandle * | handle, |
|
|
char ** | msg, |
|
|
unsigned int * | numChars ) |
Get the error message.
- Parameters
-
| handle | populated handle |
| msg | error message |
| numChars | number of characters of string representation |
- Returns
- S_OK on success
◆ tfErrPopFirst()
Get and clear the first error
◆ tfErrSet()
| HRESULT tfErrSet |
( |
HRESULT | code, |
|
|
const char * | msg, |
|
|
int | line, |
|
|
const char * | file, |
|
|
const char * | func ) |
Set the error indicator. If there is a previous error indicator, then the previous indicator is moved down the stack.
◆ tfErrStr()
| HRESULT tfErrStr |
( |
struct tfErrorHandle * | handle, |
|
|
char ** | str, |
|
|
unsigned int * | numChars ) |
Get a string representation of an error.