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

TraceError – PB Docs 2018 – PowerBuilder Library

TraceError – PB Docs 2018

TraceError

PowerScript function

Description

Logs your own error message and its severity level to the trace file
if tracing of this activity type has been enabled.

Syntax

Argument

Description

severity

A long whose value is a number you want to indicate the
severity of the error

message

A string whose value is the error message you want to add
to the trace file

Return value

ErrorReturn. This function always returns Success!.

If severity or message is null, TraceError returns null and no entry
is made in the trace file.

Usage

TraceError logs an activity type value of ActError! to the trace
file if you enabled the tracing of this type with the
TraceEnableActivity function and then called the TraceBegin function. You
use the TraceError function to record your own error message. It works
just like the TraceUser function except that you use it to identify more
severe problems. The severity and message values are passed without
modification to the trace file.

Examples

This example logs an error message to the trace file when a database
retrieval fails:

See also

TraceEnableActivity

TraceUser


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