Error category for StormByte errors.
More...
#include <error.hxx>
|
| const char * | name () const noexcept override |
| | Get the name of the error category.
|
| |
| std::string | message (int ev) const override |
| | Get the message corresponding to an error value.
|
| |
| std::error_condition | default_error_condition (int ev) const noexcept override |
| | Get the default error condition for an error value.
|
| |
Error category for StormByte errors.
The Category class extends std::error_category to provide a custom category for errors defined in the StormByte library. This allows for better integration with the C++ standard library's error handling mechanisms.
◆ default_error_condition()
| std::error_condition StormByte::Error::Category::default_error_condition |
( |
int |
ev | ) |
const |
|
overridenoexcept |
Get the default error condition for an error value.
- Parameters
-
- Returns
- Corresponding error condition.
◆ message()
| std::string StormByte::Error::Category::message |
( |
int |
ev | ) |
const |
|
override |
Get the message corresponding to an error value.
- Parameters
-
- Returns
- Corresponding error message.
◆ name()
| const char * StormByte::Error::Category::name |
( |
| ) |
const |
|
overridenoexcept |
Get the name of the error category.
- Returns
- Name of the error category.
The documentation for this class was generated from the following file:
- /home/runner/work/StormByte/StormByte/lib/public/StormByte/error.hxx