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
error.hxx
1#pragma once
2
3#include <StormByte/visibility.h>
4
5#include <string>
6#include <system_error>
7
15namespace StormByte {
23 namespace Error {
31 enum class Code {
32
33 };
34
43 class STORMBYTE_PUBLIC Category: public std::error_category {
44 public:
49 const char* name() const noexcept override;
50
56 std::string message(int ev) const override;
57
63 std::error_condition default_error_condition(int ev) const noexcept override;
64 };
65
70 STORMBYTE_PUBLIC const class Category& category() noexcept;
71 }
72
73 STORMBYTE_PUBLIC std::error_code make_error_code(Error::Code e);
74}
75
76namespace std {
77 template<> struct is_error_code_enum<StormByte::Error::Code>: true_type {};
78}
Error category for StormByte errors.
Definition error.hxx:43
const char * name() const noexcept override
Get the name of the error category.
Namespace for error handling in the StormByte library.
Main namespace for the StormByte library.