Salesforce

Retrieving Error Messages for the SQL Gateway (Magic xpa 3.x)

« Go Back

Information

 
Created ByKnowledge Migration User
Approval Process StatusPublished
Objective
Description

Retrieving Error Messages for the SQL Gateway (Magic xpa 3.x)

Magic xpa provides the WRKMSGD command for retrieving data about the error. For more information, see the Exception and Error Handling topic.

Magic xpa also provides the ErrDbmsCode and ErrDbmsMessage functions for retrieving error messages.

ErrDbmsCode

When there is an error in database, this function returns the original DBMS error code. The code is not specified.

Syntax:

ErrDbmsCode ()

Parameter:

None

Returns:

The DBMS original error code.

Note:

The ErrDbmsCode function can be used for fatal and unexpected errors, assuming that the developer is familiar with DBMS internal error codes.

ErrDbmsMessage

When there is an error in the database, this function returns the original DBMS error message. The message is not specified.

Syntax:

ErrDbmsMessage ()

Parameter:

None

Returns:

Original DBMS error message.

Note:

The ErrDbmsMessage function can be used for fatal and unexpected errors. Magic xpa gets the internal message from the DBMS and displays it.

Reference
Attachment 
Attachment