Newer Version Available

This content describes an older version of this product. View Latest

aura:systemError

Indicates that an error has occurred.
This event is automatically fired when an error is encountered during the execution of a server-side action. The aura:systemError event is handled by a client-side controller. A component can have only one <aura:handler event="aura:systemError"> tag in markup to handle this event.
This example shows a button that triggers an error and a handler for the aura:systemError event .
This client-side controller triggers the firing of an error and handles that error.
The aura:handler tag for the aura:systemError event contains these required attributes.
Attribute Name Type Description
event String The name of the event, which must be set to aura:systemError.
action Object The client-side controller action that handles the event.
The aura:systemError event contains these attributes. You can retrieve the attribute values using event.getParam("attributeName").
Attribute Name Type Description
message String The error message.
error String The error object.