Error objects are added to the error stack and present two main properties:
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.
This is the error message associated with the code.