Lluvia
ll::ErrorCategory Class Reference

Class for error code category. More...

#include <error.h>

Inheritance diagram for ll::ErrorCategory:
Collaboration diagram for ll::ErrorCategory:

Public Member Functions

virtual const char * name () const noexcept override
 Gets the error category name. More...
 
virtual std::string message (int ev) const override
 Converts from an error code to a string message. More...
 

Static Public Member Functions

static ErrorCategorygetInstance () noexcept
 Gets a singleton instance. More...
 

Detailed Description

Class for error code category.

Member Function Documentation

◆ getInstance()

static ErrorCategory& ll::ErrorCategory::getInstance ( )
staticnoexcept

Gets a singleton instance.

Returns
The instance.

◆ message()

virtual std::string ll::ErrorCategory::message ( int  ev) const
inlineoverridevirtual

Converts from an error code to a string message.

Parameters
[in]everror code. The value must correspond with one of ll::ErrorCode values.
Returns
The corresponding string for ev.

◆ name()

virtual const char* ll::ErrorCategory::name ( ) const
inlineoverridevirtualnoexcept

Gets the error category name.

Returns
The name.

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