|
Unicorn XML Toolkit Version 1.00.00 |
|||||||||
�PREV CLASS�� NEXT CLASS | FRAMES��NO FRAMES | |||||||||
SUMMARY: � CONSTR �|� FUNCTION �|�DATA | DETAIL: � CONSTR �|� FUNCTION �|�DATA |
class CSqlException: public IException { public: enum { cannotCreateEnvironment, invalidNumberOfParameters, invalidColumnName, cannotFetchColumnData, databaseInterfaceError }; public: CSqlException(int nCode); CSqlException(int nCode, const CString &strArg); CSqlException( int nCode, const CString &strArg1, const CString &strArg2); CSqlException( int nCode, const CString &strArg1, const CString &strArg2, const CString &strArg3); CSqlException(int nCode, IException *pException); ~CSqlException(); public: CString ToString(); };
The exception thrown by database interface functions.
Every exception of this class is assigned an integer exception code. Allowed values for exception codes are specified by the anonymous enumeration contained in this class declaration.
Up to three optional informational strings may be associated with the exception. Alterantively, the exception of this class may be used to wrap information contained in another exception.
Constructor/Destructor Summary | |
CSqlException
(int nCode);
����������Constructs the exception. |
|
CSqlException
(int nCode, const CString &strArg);
����������Constructs the exception with one informational string. |
|
CSqlException
(int nCode, const CString &strArg1, const CString &strArg2);
����������Constructs the exception with two informational strings. |
|
CSqlException
(int nCode, const CString &strArg1, const CString &strArg2, const CString &strArg3);
����������Constructs the exception with three informational strings. |
|
CSqlException
(int nCode, IException *pException);
����������Constructs the exception wrapping another exception. |
|
~CSqlException
();
����������Destroys the exception. |
Function Summary | |
CString
|
ToString
();
����������Returns the string representation of this exception. |
Constructor/Destructor Detail |
CSqlException(int nCode);
Constructs the exception.
nCode
- the exception codeCSqlException(int nCode, const CString &strArg);
Constructs the exception with one informational string.
nCode
- the exception codestrArg
- the informational stringCSqlException( int nCode, const CString &strArg1, const CString &strArg2);
Constructs the exception with two informational strings.
nCode
- the exception codestrArg1
- the first informational stringstrArg2
- the second informational stringCSqlException( int nCode, const CString &strArg1, const CString &strArg2, const CString &strArg3);
Constructs the exception with three informational strings.
nCode
- the exception codestrArg1
- the first informational stringstrArg2
- the second informational stringstrArg3
- the third informational stringCSqlException(int nCode, IException *pException);
Constructs the exception wrapping another exception.
nCode
- the exception codepException
- the exception to be wrapped~CSqlException();
Destroys the exception.
Function Detail |
CString ToString();
Returns the string representation of this exception.
|
Unicorn XML Toolkit Version 1.00.00 |
|||||||||
�PREV CLASS�� NEXT CLASS | FRAMES��NO FRAMES | |||||||||
SUMMARY: � CONSTR �|� FUNCTION �|�DATA | DETAIL: � CONSTR �|� FUNCTION �|�DATA |