Developing Secure Code
Testing Components
createComponent()
createComponents()
enqueueAction()
error()
get()
getCallback()
getComponent()
getReference()
getRoot()
getToken()
log()
reportError()
run()
set()
warning()
Previous PDF Versions
Report an error to the server after handling it. Note that the method should be used only if the try-catch mechanism of error handling is not desired or not functional, such as in nested promises.
reportError (String message, Error error)
message: Type: String. The error message.
error: Type: Error. An error object to be included in handling and reporting.