The $A.error
is deprecated. Error in Aura components should be reported by throwing a native JavaScript Error
via throw new Error()
.
The following pattern is considered an error:
$A.error('Something wrong happened!');
Example of correct code:
throw new Error('Something wrong happened!');