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

#include <basic_types.hpp>

Inheritance diagram for jau::LogicError:
Collaboration diagram for jau::LogicError:

Public Member Functions

 LogicError (const LogicError &o) noexcept=default
 
 LogicError (LogicError &&o) noexcept=default
 
 LogicError (std::string const &m, const char *file, int line) noexcept
 
 ~LogicError () noexcept override=default
 
LogicErroroperator= (const LogicError &o) noexcept=default
 
LogicErroroperator= (LogicError &&o) noexcept=default
 
const char * what () const noexcept override
 
- Public Member Functions inherited from jau::LogicErrorBase
 LogicErrorBase (const LogicErrorBase &o) noexcept=default
 
 LogicErrorBase (LogicErrorBase &&o) noexcept=default
 
 ~LogicErrorBase () noexcept override=default
 
LogicErrorBaseoperator= (const LogicErrorBase &o) noexcept=default
 
LogicErrorBaseoperator= (LogicErrorBase &&o) noexcept=default
 
- 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.
 

Protected Member Functions

 LogicError (std::string &&type, std::string const &m, const char *file, int line) noexcept
 
- Protected Member Functions inherited from jau::LogicErrorBase
 LogicErrorBase (std::string &&type, 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 422 of file basic_types.hpp.

Constructor & Destructor Documentation

◆ LogicError() [1/4]

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

Definition at line 424 of file basic_types.hpp.

Here is the caller graph for this function:

◆ LogicError() [2/4]

jau::LogicError::LogicError ( std::string const & m,
const char * file,
int line )
inlinenoexcept

Definition at line 428 of file basic_types.hpp.

◆ ~LogicError()

jau::LogicError::~LogicError ( )
overridedefaultnoexcept

◆ LogicError() [3/4]

jau::LogicError::LogicError ( const LogicError & o)
defaultnoexcept

◆ LogicError() [4/4]

jau::LogicError::LogicError ( LogicError && o)
defaultnoexcept

Member Function Documentation

◆ operator=() [1/2]

LogicError & jau::LogicError::operator= ( const LogicError & o)
defaultnoexcept

◆ operator=() [2/2]

LogicError & jau::LogicError::operator= ( LogicError && o)
defaultnoexcept

◆ what()

const char * jau::LogicError::what ( ) const
inlineoverridevirtualnoexcept

Reimplemented from jau::ExceptionBase.

Definition at line 438 of file basic_types.hpp.

Here is the caller graph for this function:

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