MeshKernel
All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Pages Concepts
Public Member Functions | List of all members
meshkernel::ErrorCategory Class Reference

Contains error category information. More...

#include <Exceptions.hpp>

Public Member Functions

 ErrorCategory (std::string_view name, ExitCode exit_code)
 Class constructor.
 
std::string_view Name () const
 Returns the name of the error category.
 
ExitCode Code () const
 Return the exit code of the error category.
 

Detailed Description

Contains error category information.

Constructor & Destructor Documentation

◆ ErrorCategory()

meshkernel::ErrorCategory::ErrorCategory ( std::string_view  name,
ExitCode  exit_code 
)
inline

Class constructor.

Parameters
[in]nameThe name of the error category
[in]exit_codeThe exit code of the error category

Member Function Documentation

◆ Code()

ExitCode meshkernel::ErrorCategory::Code ( ) const
inline

Return the exit code of the error category.

Returns
The exit code of the error category

◆ Name()

std::string_view meshkernel::ErrorCategory::Name ( ) const
inline

Returns the name of the error category.

Returns
The name of the error category

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