CoNLL-U
Loading...
Searching...
No Matches
tg::conllu::ErrorCategory Class Referencefinal

The std::error_category implementation backing tg::conllu::ErrorCode. More...

#include <error.hpp>

Inheritance diagram for tg::conllu::ErrorCategory:

Public Member Functions

constexpr const char * name () const noexcept override
 Name of the error category.
constexpr std::string message (int ev) const noexcept override
 Human-readable message for an ErrorCode value.

Detailed Description

The std::error_category implementation backing tg::conllu::ErrorCode.

Member Function Documentation

◆ message()

std::string tg::conllu::ErrorCategory::message ( int ev) const
nodiscardconstexproverridenoexcept

Human-readable message for an ErrorCode value.

Parameters
[in]evUnderlying integer value of an ErrorCode.
Returns
Description of the error, or "<unknown>" if ev is not a recognized ErrorCode.

◆ name()

const char * tg::conllu::ErrorCategory::name ( ) const
nodiscardconstexproverridenoexcept

Name of the error category.

Returns
"tg::conllu".

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