jaulib v1.3.0
Jau Support Library (C++, Java, ..)
Public Member Functions | Protected Member Functions | List of all members
jau::ExceptionBase Class Reference

#include <basic_types.hpp>

Inheritance diagram for jau::ExceptionBase:
Collaboration diagram for jau::ExceptionBase:

Public Member Functions

 ExceptionBase (const ExceptionBase &o)=default
 
 ExceptionBase (ExceptionBase &&o)=default
 
virtual ~ExceptionBase () noexcept=default
 
const std::string & backtrace () const noexcept
 
const std::string & message () const noexcept
 
 operator const std::string & () const noexcept
 Allow conversion to const std::string&, as required by Catch2's REQUIRE_THROWS_MATCHES More...
 
std::ostream & operator<< (std::ostream &out) noexcept
 
ExceptionBaseoperator= (const ExceptionBase &o)=default
 
ExceptionBaseoperator= (ExceptionBase &&o)=default
 
virtual const char * what () const noexcept
 

Protected Member Functions

 ExceptionBase (std::string type, std::string const &m, const char *file, int line) noexcept
 

Detailed Description

Definition at line 307 of file basic_types.hpp.

Constructor & Destructor Documentation

◆ ExceptionBase() [1/3]

jau::ExceptionBase::ExceptionBase ( std::string  type,
std::string const &  m,
const char *  file,
int  line 
)
protectednoexcept

Definition at line 240 of file basic_types.cpp.

◆ ~ExceptionBase()

virtual jau::ExceptionBase::~ExceptionBase ( )
virtualdefaultnoexcept

◆ ExceptionBase() [2/3]

jau::ExceptionBase::ExceptionBase ( const ExceptionBase o)
default

◆ ExceptionBase() [3/3]

jau::ExceptionBase::ExceptionBase ( ExceptionBase &&  o)
default

Member Function Documentation

◆ operator=() [1/2]

ExceptionBase & jau::ExceptionBase::operator= ( const ExceptionBase o)
default

◆ operator=() [2/2]

ExceptionBase & jau::ExceptionBase::operator= ( ExceptionBase &&  o)
default

◆ message()

const std::string & jau::ExceptionBase::message ( ) const
inlinenoexcept

Definition at line 324 of file basic_types.hpp.

Here is the caller graph for this function:

◆ backtrace()

const std::string & jau::ExceptionBase::backtrace ( ) const
inlinenoexcept

Definition at line 325 of file basic_types.hpp.

◆ operator const std::string &()

jau::ExceptionBase::operator const std::string & ( ) const
inlinenoexcept

Allow conversion to const std::string&, as required by Catch2's REQUIRE_THROWS_MATCHES

Definition at line 328 of file basic_types.hpp.

◆ what()

virtual const char * jau::ExceptionBase::what ( ) const
inlinevirtualnoexcept

Reimplemented in jau::OutOfMemoryError, and jau::RuntimeException.

Definition at line 330 of file basic_types.hpp.

Here is the caller graph for this function:

◆ operator<<()

std::ostream & jau::ExceptionBase::operator<< ( std::ostream &  out)
inlinenoexcept

Definition at line 334 of file basic_types.hpp.


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