fcml
1.2.2
|
Contains an error message together with error level and error code. More...
#include <fcml_errors.hpp>
Public Types | |
enum | ErrorLevel { EL_ERROR, EL_WARN } |
Error level. More... | |
Public Member Functions | |
ErrorInfo () | |
Default constructor. More... | |
ErrorInfo (const fcml_cstring &message, fcml_ceh_error code=FCML_CEH_GEC_NO_ERROR, ErrorLevel level=EL_ERROR) | |
Creates an error for given message and optional error code and level. More... | |
fcml_ceh_error | getCode () const |
Gets error code. More... | |
void | setCode (fcml_ceh_error code) |
Sets a new error code. More... | |
ErrorLevel | getLevel () const |
Gets error level. More... | |
void | setLevel (ErrorLevel level) |
Sets error level. More... | |
const fcml_cstring & | getMessage () const |
Gets error message. More... | |
void | setMessage (const fcml_cstring &message) |
Sets error message. More... | |
Contains an error message together with error level and error code.
Error level.
|
inline |
Default constructor.
|
inline |
Creates an error for given message and optional error code and level.
message | The error message. |
code | The error code. |
level | The error level. |
|
inline |
Gets error code.
|
inline |
Gets error level.
|
inline |
Gets error message.
|
inline |
Sets a new error code.
code | The new error code. |
|
inline |
Sets error level.
level | The error level. |
|
inline |
Sets error message.
message | The error message. |