StormByte C++ Library 0.0.9999
StormByte is a comprehensive, cross-platform C++ library aimed at easing system programming, configuration management, logging, and database handling tasks. This library provides a unified API that abstracts away the complexities and inconsistencies of different platforms (Windows, Linux).
Loading...
Searching...
No Matches
Public Member Functions | List of all members
StormByte::Error::Category Class Reference

Error category for StormByte errors. More...

#include <error.hxx>

Inheritance diagram for StormByte::Error::Category:
Inheritance graph
[legend]
Collaboration diagram for StormByte::Error::Category:
Collaboration graph
[legend]

Public Member Functions

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.
 

Detailed Description

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.

Member Function Documentation

◆ 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
evError value.
Returns
Corresponding error condition.

◆ message()

std::string StormByte::Error::Category::message ( int  ev) const
override

Get the message corresponding to an error value.

Parameters
evError value.
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: