Error class just encodes a human-readable error message with a machine-readable error code. The error code is typically in the form
<SYSTEM> is the system the error occurred in, and
<NUM> is a number that will uniquely identify the error within that system. For instance, errors coming from the
LocalAssetLoader are in the form
LAL-02, etc. If the same error occurs in multiple places, they should still have unique numbers, in order to aid debugging.
Error(string message, string code)- Create a new promise with the specified message and code.