Skip Headers

Oracle C++ Call Interface Programmer's Guide
Release 2 (9.2)

Part Number A96583-01
Go To Documentation Library
Home
Go To Product List
Book List
Go To Table Of Contents
Contents
Go To Index
Index

Master Index

Feedback

Go to previous page Go to beginning of chapter Go to next page

OCCI Classes and Methods, 19 of 22


SQLException Class

The SQLException class provides information on generated errors, their codes and associated messages.

SQLException()

This is the SQLException constructor.

Syntax

There are variants of syntax:

SQLException();
SQLException(const SQLException &e);

Summary of SQLException Methods

Table 8-19 SQLException  
Method Summary

getErrorCode()

Return the database error code.

getMessage()

Return the error message string for this exception.

setErrorCtx()

Set the error context.

getErrorCode()

Gets the database error code.

Syntax
int getErrorCode() const;

getMessage()

Returns the error message string of this SQLException if it was created with an error message string. Returns null if the SQLException was created with no error message.

Syntax
string getMessage() const;

setErrorCtx()

Sets the pointer to the error context.

Syntax
void setErrorCtx(void *ctx);
Parameters
ctx

The pointer to the error context.


Go to previous page Go to beginning of chapter Go to next page
Oracle
Copyright © 2001, 2002 Oracle Corporation.

All Rights Reserved.
Go To Documentation Library
Home
Go To Product List
Book List
Go To Table Of Contents
Contents
Go To Index
Index

Master Index

Feedback