jaulib v1.3.6
Jau Support Library (C++, Java, ..)
Loading...
Searching...
No Matches
jau::math::MathError Class Reference

#include <math_error.hpp>

Inheritance diagram for jau::math::MathError:
Collaboration diagram for jau::math::MathError:

Public Member Functions

 MathError (math_error_t err, std::string const &m, const char *file, int line) noexcept
 
const char * what () const noexcept override
 
- Public Member Functions inherited from jau::math::MathErrorBase
math_error_t error () const noexcept
 
- Public Member Functions inherited from jau::ExceptionBase
 ExceptionBase (const ExceptionBase &o) noexcept=default
 
 ExceptionBase (ExceptionBase &&o) noexcept=default
 
virtual ~ExceptionBase () noexcept=default
 
const std::string & backtrace () const noexcept
 Returns optional whole backtrace.
 
const std::string & brief_message () const noexcept
 Returns brief message.
 
 operator const std::string & () const noexcept
 Allow conversion to const std::string& using brief_message(), as required by Catch2's REQUIRE_THROWS_MATCHES
 
std::ostream & operator<< (std::ostream &out) noexcept
 
ExceptionBaseoperator= (const ExceptionBase &o) noexcept=default
 
ExceptionBaseoperator= (ExceptionBase &&o) noexcept=default
 
const std::string & whole_message () const noexcept
 Returns brief message and optional whole backtrace, i.e.
 

Additional Inherited Members

- Protected Member Functions inherited from jau::math::MathErrorBase
 MathErrorBase (math_error_t err, std::string const &m, const char *file, int line) noexcept
 
- Protected Member Functions inherited from jau::ExceptionBase
 ExceptionBase (std::string &&type, std::string const &m, const char *file, int line) noexcept
 

Detailed Description

Definition at line 82 of file math_error.hpp.

Constructor & Destructor Documentation

◆ MathError()

jau::math::MathError::MathError ( math_error_t err,
std::string const & m,
const char * file,
int line )
inlinenoexcept

Definition at line 84 of file math_error.hpp.

Member Function Documentation

◆ what()

const char * jau::math::MathError::what ( ) const
inlineoverridevirtualnoexcept

Reimplemented from jau::ExceptionBase.

Definition at line 87 of file math_error.hpp.


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