Final Platform Layer 0.9.8-beta
Loading...
Searching...
No Matches
Functions
Error Handling

This category contains functions for handling errors. More...

Functions

fpl_common_api void fplClearErrors ()
 Clears all the current errors in the platform.
 
fpl_common_api const char * fplGetErrorByIndex (const size_t index)
 Gets the last error string from the given index.
 
fpl_common_api size_t fplGetErrorCount ()
 Gets the count of total last errors.
 
fpl_common_api const char * fplGetLastError ()
 Gets the last internal error string.
 

Detailed Description

This category contains functions for handling errors.

Function Documentation

◆ fplClearErrors()

fpl_common_api void fplClearErrors ( )

Clears all the current errors in the platform.

Note
This function can be called regardless of the initialization state!
See also
Clearing the errors

◆ fplGetErrorByIndex()

fpl_common_api const char * fplGetErrorByIndex ( const size_t  index)

Gets the last error string from the given index.

Parameters
indexThe index
Returns
Returns the last error string from the given index or empty when there was no error.
Note
This function can be called regardless of the initialization state!
See also
Get error by index

◆ fplGetErrorCount()

fpl_common_api size_t fplGetErrorCount ( )

Gets the count of total last errors.

Note
This function can be called regardless of the initialization state!
Returns
Returns the number of last errors or zero when there was no error.
See also
Was there an error?

◆ fplGetLastError()

fpl_common_api const char * fplGetLastError ( )

Gets the last internal error string.

Returns
Returns the last error string or empty string when there was no error.
Note
This function can be called regardless of the initialization state!
See also
Get latest error