Error Class
  • Updated on 17 Aug 2019
  • 1 minute to read
  • Contributors
  • Print
  • Share
  • Dark
    Light

Error Class

  • Print
  • Share
  • Dark
    Light

Error objects are added to the error stack and present two main properties:

Properties

errorCode

This is the code of the error that has occurred. Codes lower than 1000 are reserved by the platform; custom error numbers can be only greater than 1000. If the developer tries to add an error number lower than 1001, the system will override it with error code 1000 and the message will not be changed. The system errors can be seen in the list of Error Codes.

errorMessage

This is the error message associated with the code.

Was this article helpful?