Product Documentation

FairCom Java & .NET Stored Procedures

Previous Topic

Next Topic

DhSQLException.getMessageText

Returns a textual description of the exception error.

Format

public String getMessageText()

Returns

A string containing the textual description of the exception.

Parameters

Throws

Example


CREATE PROCEDURE test_proc()

BEGIN

Integer errstate;

String errmesg;

try

{

SQLIStatement insert_cust = new SQLIStatement ( "INSERT

INTO customer VALUES (1,2) ");

insert_cust.execute();

}

catch (DhSQLException e)

{

errstate = e.getSqlState();

errmesg = e.getMessageText();

}

END

TOCIndex