Connection Information

To perform the requested action, WordPress needs to access your web server. Please enter your FTP credentials to proceed. If you do not remember your credentials, you should contact your web host.

Connection Type

GetMessage – PB Docs 2019 – PowerBuilder Library

GetMessage – PB Docs 2019

GetMessage

PowerScript function

Description

Returns the error message from objects of type Throwable.

Syntax

Argument

Description

throwableobject

Object of type Throwable from which you want to retrieve
an error message

Return value

String.

The error text for system error objects, such as RuntimeError, is
preset.

Usage

You can set the error message for an object of type Throwable using
the SetMessage function.

Examples

This example catches a system error message and displays that error
in a message box. Catching the system error prevents the application from
terminating when the arccosine argument, entered by the application user,
is not in the required range:

This example catches and displays a user error message from the
Clicked event of a button that calls the user-defined function, wf_acos.
The user-defined function catches a runtime error — preventing the
application from terminating — and then sets the message for a user
object, uo_exception, that inherits from the Exception object type:

Code for the wf_acos function is shown in the SetMessage
function.

See also

SetMessage


Document get from Powerbuilder help
Thank you for watching.
Was this article helpful?
Subscribe
Notify of
guest
0 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x