Skip to content

UserError

Include: Use System\ErrorSystem.pkg

Raises a user-facing error message with an optional caption.

Type: Procedure

Parameters

Parameter Type Description
sMessage String Message shown to the user.
sCaption String Optional caption.

Syntax

Procedure UserError Global String sMessage String sCaption

Call

Send UserError "Quantity must be greater than zero" "Order Entry"

Description

When sCaption is supplied, the caption is used for the user-facing error. Without it, the handler uses its configured user error caption.

See also