SwatDB
Public Member Functions | Protected Attributes | List of all members
SwatDBException Class Reference

#include <exceptions.h>

Inheritance diagram for SwatDBException:
Inheritance graph
[legend]
Collaboration diagram for SwatDBException:
Collaboration graph
[legend]

Public Member Functions

 SwatDBException (const std::string &msg)
 
virtual ~SwatDBException () throw ()
 
virtual const char * what () const throw ()
 Returns the error message of the exception. More...
 

Protected Attributes

std::string message
 

Detailed Description

SwatDBException. SwatDBException is the base class for all exceptions thrown in SwatDB system. It is based on std::exception and other exceptions defined below inherit from this class.

Constructor & Destructor Documentation

◆ SwatDBException()

SwatDBException::SwatDBException ( const std::string &  msg)
inlineexplicit

SwatDBExcpetion constructor. Requires string message

◆ ~SwatDBException()

virtual SwatDBException::~SwatDBException ( )
throw (
)
inlinevirtual

SwatDBException destructor.

Member Function Documentation

◆ what()

virtual const char* SwatDBException::what ( ) const
throw (
)
inlinevirtual

Returns the error message of the exception.

Precondition
The exception is thrown and caught.
Postcondition
The error message is returned.
Returns
Pointer to the error message.

Member Data Documentation

◆ message

std::string SwatDBException::message
protected

Message that this exception will output.


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