|
std::ostream & | operator<< (std::ostream &os, const ErrorCode &ec) |
|
◆ ErrorCode() [1/2]
omw::windows::ErrorCode::ErrorCode |
( |
| ) |
|
Default ctor.
Initializes the code with 0
and the message string with OK
.
◆ ErrorCode() [2/2]
omw::windows::ErrorCode::ErrorCode |
( |
int |
code, |
|
|
const std::string & |
message = "" |
|
) |
| |
Ctor to initialize the attributes.
- Parameters
-
code | The actual error code |
message | The codes message string |
◆ code()
int omw::windows::ErrorCode::code |
( |
| ) |
const |
|
virtual |
Getter for the error code.
- Returns
- The error code
◆ good()
bool omw::windows::ErrorCode::good |
( |
| ) |
const |
|
virtual |
◆ msg()
const std::string & omw::windows::ErrorCode::msg |
( |
| ) |
const |
|
virtual |
Getter for the message.
- Returns
- Message string
The documentation for this class was generated from the following files: