53 G::Exception::Exception(
const std::string & what ,
const std::string & more1 ,
const std::string & more2 ,
const std::string & more3 ) :
67 return m_what.c_str() ;
72 if( more !=
nullptr && *more !=
'\0' )
74 m_what += std::string(
": ") ;
75 m_what += std::string(more) ;
83 m_what += std::string(
": ") ;
84 m_what += std::string(more) ;
90 if( context !=
nullptr && *context !=
'\0' )
92 m_what = std::string(context) +
": " + m_what ;
virtual const char * what() const g__noexcept override
Override from std::exception.
Exception(const char *what)
Constructor.
void prepend(const char *context)
Prepends context to the what string.
virtual ~Exception() g__noexcept
Destructor.
void append(const char *more)
Appends 'more' to the what string.