src/swipl-devel/packages/xpce/man/refmanual/md/error.md

class error {#class-error}

An error object represents describes how an error, warning or message with specified error-id is handled. When an error is detected PCE will invoke object ->error on the associated object, which is normally the receiver of the currently executing method.

An error object defines a <-feedback which determines whether the error is printed in a format suitable for the PCE programmer in the host-language window, raises a host-labnguage exception or is reported in a format suitable for the application user using the general object ->report mechanism.

An error object defines a <-kind that determines the nature and how serious the error is considered.

The PCE online manual has an entry Errors in the Browsers menu that allows the user to examine the available (reusable) error objects.

@see pce-error_object @see pce-error_method @see pce-error_context @see pce-catched_errors @see pce->catched @see pce->catch_pop @see pce->catch_error

Instance variables {#class-error-instvars}

Send methods {#class-error-send}

Get methods {#class-error-get}



Try the rswipl package in your browser

Any scripts or data that you put into this service are public.

rswipl documentation built on June 16, 2026, 5:07 p.m.