MeshKernel
Public Member Functions | Protected Member Functions | List of all members
meshkernel::MeshKernelError Class Reference

A class for throwing general MeshKernel exceptions. More...

#include <Exceptions.hpp>

Inheritance diagram for meshkernel::MeshKernelError:
meshkernel::AlgorithmError meshkernel::ConstraintError meshkernel::LinearAlgebraError meshkernel::MeshGeometryError meshkernel::NotImplementedError meshkernel::RangeError

Public Member Functions

template<typename... Args>
 MeshKernelError (FormatString const &format_string, Args &&... args)
 Class constructor. More...
 
virtual ~MeshKernelError ()=default
 Class destructor.
 
const char * what () const noexcept override
 Returns the explanatory string of the error. More...
 
ExitCode Code () const
 Returns the exit code. More...
 

Protected Member Functions

virtual ErrorCategory Category () const
 Returns the error category. More...
 
virtual std::string FormattedMessage () const
 Returns the message.
 

Detailed Description

A class for throwing general MeshKernel exceptions.

Constructor & Destructor Documentation

◆ MeshKernelError()

template<typename... Args>
meshkernel::MeshKernelError::MeshKernelError ( FormatString const &  format_string,
Args &&...  args 
)
inline

Class constructor.

Parameters
[in]format_stringThe format string
[in]argsThe arguments to be formatted.

Member Function Documentation

◆ Category()

virtual ErrorCategory meshkernel::MeshKernelError::Category ( ) const
inlineprotectedvirtual

Returns the error category.

Returns
The error category.

◆ Code()

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

Returns the exit code.

Returns
The exit code

◆ what()

const char* meshkernel::MeshKernelError::what ( ) const
inlineoverridenoexcept

Returns the explanatory string of the error.

Returns
The explanatory string of the error.

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