LibreOffice LibreOffice 25.8 SDK API Reference

Loading...
Searching...
No Matches
SQLException Exception Referencepublished

is an exception that provides information on a database access error. More...

`import "SQLException.idl";`

Inheritance diagram for SQLException:

## Public Attributes
string | SQLState
| returns a string, which uses the XOPEN SQLState conventions.
long | ErrorCode
| returns an integer error code that is specific to each vendor.
any | NextException
| returns a chain to the next Exception.
Public Attributes inherited from Exception
string | Message
| gives a detailed description of the reason, why the exception was thrown.
com::sun::star::uno::XInterface | Context
| should contain a reference to the original, which raised the exception.

## Detailed Description

is an exception that provides information on a database access error.

Each com::sun::star::sdbc::SQLException provides several kinds of information:

- a string describing the error. This is used as the com::sun::star::uno::Exception message.

## Member Data Documentation

## ◆ ErrorCode

long ErrorCode

returns an integer error code that is specific to each vendor.

Normally this will be the actual error code returned by the underlying database.

## ◆ NextException

any NextException

returns a chain to the next Exception.

This can be used to provide additional error information.

## ◆ SQLState

string SQLState

returns a string, which uses the XOPEN SQLState conventions.

The values of the SQLState string are described in the XOPEN SQL spec.

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

- com/sun/star/sdbc/SQLException.idl