STK++ 0.9.13
STK::Exception Class Reference

Sdk class for all library Exceptions. More...

#include <STK_Exceptions.h>

Inheritance diagram for STK::Exception:
Inheritance graph

Public Member Functions

 Exception () throw ()
 
 Exception (String const &__arg) throw ()
 Takes a character String describing the error.
 
virtual ~Exception () throw ()
 
virtual const String error () const throw ()
 Returns a C-style character string describing the general cause of the current error.
 

Private Attributes

String _M_msg
 

Detailed Description

Sdk class for all library Exceptions.

This is the base class for all Exceptions thrown by the standard library, and by certain language expressions. You are free to derive your own Exception classes, or use a different hierarchy, or to throw non-class data (e.g., fundamental types).

Definition at line 50 of file STK_Exceptions.h.

Constructor & Destructor Documentation

◆ Exception() [1/2]

STK::Exception::Exception ( )
throw (
)
inline

Definition at line 143 of file STK_Exceptions.h.

143{_M_msg =_T("Exception error."); }
#define _T(x)
Let x unmodified.

References _M_msg, and _T.

◆ Exception() [2/2]

STK::Exception::Exception ( String const __arg)
throw (
)
inlineexplicit

Takes a character String describing the error.


Definition at line 144 of file STK_Exceptions.h.

144{ _M_msg = __arg;}

References _M_msg.

◆ ~Exception()

STK::Exception::~Exception ( )
throw (
)
inlinevirtual

Definition at line 145 of file STK_Exceptions.h.

145{}

Member Function Documentation

◆ error()

Member Data Documentation

◆ _M_msg

String STK::Exception::_M_msg
private

Definition at line 52 of file STK_Exceptions.h.

Referenced by error(), Exception(), and Exception().


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