libcommonc++  0.7
SQLException Class Reference

An exception indicating a SQL database error. More...

#include <SQLException.h++>

Inheritance diagram for SQLException:
Collaboration diagram for SQLException:

Public Member Functions

 SQLException (String message=String::empty, String sql=String::null)
 Construct a new SQLException with an optional cause message. More...
 
virtual ~SQLException () throw ()
 
void write (std::ostream &stream) const
 Write a textual representation of the exception to a stream. More...
 
String getSQL () const
 Get the SQL statement associated with this exception. More...
 
String getMessage () const
 Get the message associated with the exception. More...
 
virtual const char * what () const throw ()
 Get the message associated with the exception. More...
 
String toString () const
 Get a textual representation of the exception as a String. More...
 

Protected Attributes

String _message
 The cause message. More...
 
CString _what
 

Detailed Description

An exception indicating a SQL database error.

Author
Mark Lindner

Constructor & Destructor Documentation

◆ SQLException()

SQLException ( String  message = String::empty,
String  sql = String::null 
)

Construct a new SQLException with an optional cause message.

◆ ~SQLException()

~SQLException ( )
throw (
)
virtual

Member Function Documentation

◆ getMessage()

String getMessage ( ) const
inlineinherited

Get the message associated with the exception.

◆ getSQL()

String getSQL ( ) const
inline

Get the SQL statement associated with this exception.

◆ toString()

String toString ( ) const
inlineinherited

Get a textual representation of the exception as a String.

◆ what()

const char * what ( ) const
throw (
)
virtualinherited

Get the message associated with the exception.

◆ write()

void write ( std::ostream &  stream) const
inlinevirtual

Write a textual representation of the exception to a stream.

Reimplemented from IOException.

Member Data Documentation

◆ _message

String _message
protectedinherited

The cause message.

◆ _what

CString _what
mutableprotectedinherited

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