CARMA C++
carma::dbms::SQLException Class Reference

an exception indicating there is a problem executing an SQL statement (more often than not indicating there is a syntax error in the SQL statement More...

#include <carma/dbms/DBConnection.h>

Inheritance diagram for carma::dbms::SQLException:
carma::util::ErrorException carma::util::BaseException

Public Member Functions

 SQLException (const char *msg, const char *fileName=__FILE__, const int lineNum=__LINE__)
 
 SQLException (const std::string msg, const char *fileName=__FILE__, const int lineNum=__LINE__)
 
- Public Member Functions inherited from carma::util::ErrorException
 ErrorException (const std::string &msg, const char *filename, int lineNo)
 Constructor. More...
 
 ErrorException (const std::ostringstream &msg, const char *filename, int lineNo)
 Constructor. More...
 
 ErrorException (const ErrorException &errorException)
 Copy constructor Very important for an exception, as it is actually a copy of the exception that is transported up to the catch();. More...
 
std::string getErrorMessage () const
 Get the full error message, including line number and file name. More...
 
virtual ::std::string getLogString () const
 
void log (log4cpp::Priority::PriorityLevel priority) const
 Log the exception. More...
 
ErrorExceptionoperator= (const ErrorException &rhs)
 
void report () const
 Report error to standard err. More...
 
virtual const char * what () const throw ()
 Get the error message; overrides BaseException & std::exception.what() More...
 
virtual ~ErrorException () throw ()
 Destructor. More...
 
- Public Member Functions inherited from carma::util::BaseException
Backtrace getBacktrace () const
 
virtual int getLineNumber () const
 
virtual ::std::string getLogString () const
 
virtual const char * getMessage () const
 
virtual const char * getSourceFile () const
 
void logException (log4cpp::Priority::PriorityLevel priority) const
 
virtual void setMessageDirectly (const char *mesg)
 
virtual void setMessageToCopy (const char *mesg)
 
virtual void setMessageToCopy (const ::std::string &mesg)
 
virtual void setMessageToCopy (const ::std::ostringstream &oss)
 
virtual ~BaseException () throw ( )
 

Additional Inherited Members

- Protected Member Functions inherited from carma::util::ErrorException
 ErrorException ()
 Default constructor. More...
 
- Protected Member Functions inherited from carma::util::BaseException
 BaseException (const BaseException &rhs)
 
 BaseException (const char *mesg, const char *fileName, const int lineNo)
 Constructor - creates an instance of class BaseException. More...
 
 BaseException (const char *mesg, const ::std::string &fileName, const int lineNo)
 
 BaseException (const ::std::string &mesg, const char *fileName, const int lineNo)
 
 BaseException (const ::std::string &mesg, const ::std::string &fileName, const int lineNo)
 
 BaseException (const ::std::ostringstream &oss, const char *fileName, const int lineNo)
 
 BaseException (const ::std::ostringstream &oss, const ::std::string &fileName, const int lineNo)
 
BaseExceptionoperator= (const BaseException &rhs)
 
virtual void setLineNumber (int num)
 
void setSourceFileDirectly (const char *file)
 
void setSourceFileToCopy (const char *file)
 
void setSourceFileToCopy (const ::std::string &file)
 

Detailed Description

an exception indicating there is a problem executing an SQL statement (more often than not indicating there is a syntax error in the SQL statement

Definition at line 591 of file DBConnection.h.


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