BSplinebasis
Loading...
Searching...
No Matches
Public Member Functions | List of all members
bspline::exceptions::BSplineException Class Referencefinal

The main exception class. More...

#include <BSplineException.h>

Inheritance diagram for bspline::exceptions::BSplineException:
Inheritance graph
[legend]
Collaboration diagram for bspline::exceptions::BSplineException:
Collaboration graph
[legend]

Public Member Functions

 BSplineException (ErrorCode errorCode)
 Constructs exception with default error message.
 
 BSplineException (ErrorCode errorCode, std::string message)
 Constructs exception with custom error message.
 
const charwhat () const noexcept override
 Returns a string representation of the exception.
 
ErrorCode getErrorCode () const
 Returns the error code of this exception.
 

Detailed Description

The main exception class.

Constructor & Destructor Documentation

◆ BSplineException() [1/2]

bspline::exceptions::BSplineException::BSplineException ( ErrorCode  errorCode)
inlineexplicit

Constructs exception with default error message.

Parameters
errorCodeThe errorCode.

◆ BSplineException() [2/2]

bspline::exceptions::BSplineException::BSplineException ( ErrorCode  errorCode,
std::string  message 
)
inline

Constructs exception with custom error message.

Parameters
errorCodeThe errorCode.
messageThe custom error message.

Member Function Documentation

◆ getErrorCode()

ErrorCode bspline::exceptions::BSplineException::getErrorCode ( ) const
inline

Returns the error code of this exception.

Returns
the errorCode.

◆ what()

const char * bspline::exceptions::BSplineException::what ( ) const
inlineoverridenoexcept

Returns a string representation of the exception.

Returns
The what string.

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