Note: This release is in preview. Features described here don’t become generally available until the latest general availability date that Salesforce announces for this release. Before then, and where features are noted as beta, pilot, or developer preview, we can’t guarantee general availability within any particular time frame or at all. Make your purchase decisions only on the basis of generally available products and features.
reportError()
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.
Signature
reportError (String message, Error error)
Parameters
- message
- Type: String
- The error message.
- error
- Type: Error
- An error object to be included in handling and reporting.