Skip to content

Latest commit

 

History

History
17 lines (11 loc) · 502 Bytes

no-deprecated-aura-error.md

File metadata and controls

17 lines (11 loc) · 502 Bytes

Prevent usage of $A.error (no-deprecated-aura-error)

The $A.error is deprecated. Error in Aura components should be reported by throwing a native JavaScript Error via throw new Error().

Rule Details

The following pattern is considered an error:

$A.error('Something wrong happened!');

Example of correct code:

throw new Error('Something wrong happened!');