Error type for ACAPI::Result containing an error message and an error code.
More...
#include <Result.hpp>
|
| Error (GSErrCode kind, const std::string &text) |
| Construct a new Error instance.
|
|
| Error (GSErrCode kind, const std::string_view text) |
| Construct a new Error instance.
|
|
| Error (GSErrCode kind, std::string &&text) |
| Construct a new Error instance.
|
|
| Error (GSErrCode kind, const char *text) |
| Construct a new Error instance.
|
|
bool | operator== (const Error &rhs) const |
| Comparison operator.
|
|
Error type for ACAPI::Result containing an error message and an error code.
◆ Error() [1/4]
ACAPI::Error::Error |
( |
GSErrCode |
kind, |
|
|
const std::string & |
text |
|
) |
| |
|
inline |
Construct a new Error instance.
- Parameters
-
kind | Error code. |
text | Detailed description of the error. |
◆ Error() [2/4]
ACAPI::Error::Error |
( |
GSErrCode |
kind, |
|
|
const std::string_view |
text |
|
) |
| |
|
inline |
Construct a new Error instance.
- Parameters
-
kind | Error code. |
text | Detailed description of the error. |
◆ Error() [3/4]
ACAPI::Error::Error |
( |
GSErrCode |
kind, |
|
|
std::string && |
text |
|
) |
| |
|
inline |
Construct a new Error instance.
- Parameters
-
kind | Error code. |
text | Detailed description of the error. |
◆ Error() [4/4]
ACAPI::Error::Error |
( |
GSErrCode |
kind, |
|
|
const char * |
text |
|
) |
| |
|
inline |
Construct a new Error instance.
- Parameters
-
kind | Error code. |
text | Detailed description of the error. |
◆ operator==()
bool ACAPI::Error::operator== |
( |
const Error & |
rhs | ) |
const |
|
inline |
Comparison operator.
- Parameters
-
rhs | The other instance to compare. |
- Returns
- True if the two instances are equal, otherwise false.