chsvlib
chsv helper source code
chsvlib_general_category_t Class Reference

A class of general chsvlib error category, which is introduced to conform std::system_error requirements. More...

#include <chsverr.h>

Inheritance diagram for chsvlib_general_category_t:
Collaboration diagram for chsvlib_general_category_t:

Public Member Functions

virtual const char * name () const noexcept
 Returns a name of the category, as a multi-byte C string.
 
virtual const wchar_t * Name () const noexcept
 Returns a name of the category, as a wide C string.
 
virtual std::string message (int err) const
 Returns a system-dependent message describing the error by calling the ChsvErrorDescriptionA function. The returned value is a C++ multi-byte string.
 
virtual std::wstring Message (int err) const
 Returns a system-dependent message describing the error by calling the ChsvErrorDescriptionW function. The returned value is a C++ wide string.
 
template<class char_type >
std::basic_string< typename std::remove_pointer< char_type >::type > message (int err) const
 Returns a system-dependent string description of the specified integral error code, which is supposed to be a chsvlib error code. More...
 
virtual bool equivalent (int valcode, const std::error_condition &cond) const noexcept
 Checks if the specified integral value, which is supposed to be a chsvlib error code, which is cast to the int type, corresponds to the specified error condition. More...
 
virtual bool equivalent (const std::error_code &code, int valcond) const noexcept
 Checks if the specified std::error_code object corresponds to the specified error condition integral code. The error condition is to be defined by the chsvlib_general_category error category. More...
 

Detailed Description

A class of general chsvlib error category, which is introduced to conform std::system_error requirements.


The documentation for this class was generated from the following file: