Core class that represents an error.
More...
Core class that represents an error.
◆ GetFlags()
UInt32 Nz::Error::GetFlags |
( |
| ) |
|
|
static |
Gets the flags of the error.
- Returns
- Flag
◆ GetLastError()
String Nz::Error::GetLastError |
( |
const char ** |
file = nullptr , |
|
|
unsigned int * |
line = nullptr , |
|
|
const char ** |
function = nullptr |
|
) |
| |
|
static |
Gets the last error.
- Returns
- Last error
- Parameters
-
file | Optional argument to set last error file |
line | Optional argument to set last error line |
function | Optional argument to set last error function |
◆ GetLastSystemError()
Gets the string representation of the last system error code.
- Returns
- Message of the error
- Parameters
-
◆ GetLastSystemErrorCode()
unsigned int Nz::Error::GetLastSystemErrorCode |
( |
| ) |
|
|
static |
Gets the last system error code.
- Returns
- "errno"
◆ SetFlags()
void Nz::Error::SetFlags |
( |
UInt32 |
flags | ) |
|
|
static |
Sets the flags.
- Parameters
-
◆ Trigger() [1/2]
void Nz::Error::Trigger |
( |
ErrorType |
type, |
|
|
const String & |
error |
|
) |
| |
|
static |
Checks if the error should trigger.
- Parameters
-
type | ErrorType of the error |
error | Message of the error |
◆ Trigger() [2/2]
void Nz::Error::Trigger |
( |
ErrorType |
type, |
|
|
const String & |
error, |
|
|
unsigned int |
line, |
|
|
const char * |
file, |
|
|
const char * |
function |
|
) |
| |
|
static |
Checks if the error should trigger.
- Parameters
-
type | ErrorType of the error |
error | Message of the error |
line | Line of the error |
file | File of the error |
function | Function of the error |
The documentation for this class was generated from the following files:
- include/Nazara/Core/Error.hpp
- src/Nazara/Core/Error.cpp