Compile-time defined error code with extended information.
Error codes defined with this structure provide four different information values.
- type - Either S standing for Success or E standing for Error.
- code - Number value assigned to this error code. Value between 0 and 9999. (should be unique to ensure easy error identification)
- category - User readable value that can be used to quickly indentify the source project of the error.
- description - User readable description of the error that can be logged to the output or other locations.
Although error codes should be mainly used to report errors and problems that resulted in expected behavior not being executed, it is allowed to defined a Success code, and provide additional information if necessary. For example: "Loading an asset succeeded but
because editor data was not parsable, debug settings were reset."