37#include <system_error>
82 ,
public virtual std::system_error
92 : std::
system_error(::GetLastError(), std::system_category(), message)
102 : std::
system_error(errno, std::generic_category(), message)
115 const char*
what() const noexcept
override
117 return std::system_error::what();
base_error()=default
Default constructor.
Custom exception class for handling system-level errors in a cross-platform manner.
Definition system_error.hpp:83
system_error(const std::string &message="")
Constructs a system_error using GetLastError() on Windows.
Definition system_error.hpp:91
~system_error() override=default
Virtual destructor.
const char * what() const noexcept override
Returns the descriptive string of this error, using std::system_error::what().
Definition system_error.hpp:115
Defines Cbeam-specific exception types that behave like their standard counterparts....
Definition base_error.hpp:31
Header file to manage inclusion of windows.h with specific settings.