PSErrorClass

Provides access to errors captured by the application server. The error information provided is server specific.

For JSP targets you must assign a variable of the PSErrorClass type before you can construct an instance of the object or call methods on it. To create an object of type PSErrorClass in ASP targets, you can designate an untyped variable to reference an instance of the object that is returned by the GetError method on a PSConnectionClass object.

Syntax

PSErrorClass (code, info )

Constructors

PSErrorClass constructor

Datatype

Description

code

int

The error code returned from the connection object

info

String

The error message returned from the connection object

Methods

PSConnectionClass method

Description

GetCode

Returns the code associated with the current error object

GetMessage

Returns the message associated with the current error object

GetNextError

Returns the next error object, if one exists