CppCommon 1.0.6.0
C++ Common Library
Loading...
Searching...
No Matches
CppCommon::ArgumentException Class Reference

Argument exception. More...

#include <exceptions.h>

Inheritance diagram for CppCommon::ArgumentException:
CppCommon::Exception

Public Member Functions

 Exception (const std::string &message="")
 Default class constructor.
 Exception (const Exception &)=default
 Exception (Exception &&)=default
Public Member Functions inherited from CppCommon::Exception
 Exception (const std::string &message="")
 Default class constructor.
 Exception (const Exception &)=default
 Exception (Exception &&)=default
virtual ~Exception ()=default
Exceptionoperator= (const Exception &)=default
Exceptionoperator= (Exception &&)=default
const std::string & message () const noexcept
 Get exception message.
const SourceLocationlocation () const noexcept
 Get exception location.
const char * what () const noexcept override
 Get string identifying exception.
virtual std::string string () const
 Get string from the current exception.

Additional Inherited Members

Protected Attributes inherited from CppCommon::Exception
std::string _cache
 Cached exception string.
std::string _message
 Exception message.
SourceLocation _location
 Exception location.

Detailed Description

Argument exception.

Definition at line 78 of file exceptions.h.

Member Function Documentation

◆ Exception() [1/3]

CppCommon::Exception::Exception ( const Exception & )
default

◆ Exception() [2/3]

CppCommon::Exception::Exception ( const std::string & message = "")
inlineexplicit

Default class constructor.

Parameters
message- Exception message (default is "")

Definition at line 40 of file exceptions.h.

◆ Exception() [3/3]

CppCommon::Exception::Exception ( Exception && )
default

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