MeshKernel
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. More...
 
std::string_view Name () const
 Returns the name of the error category. More...
 
ExitCode Code () const
 Return the exit code of the error category. More...
 

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: