Error codes
These are the default meanings for error codes that are honored throughout the API.
- Generated by the C API
- SGS_SUCCESS: operation was successful
- SGS_ENOTFND: item was not found
- SGS_ECOMP: compile error
- SGS_ENOTSUP: operation is not supported
- SGS_EINVAL: invalid value was passed
- SGS_EINPROC: process was interrupted
- Generated by SGScript VM
- SGS_INFO: information about potential issues and state of the system
- SGS_WARNING: non-fatal issues
- SGS_ERROR: fatal issues
- SGS_APIERR: API usage errors
- SGS_INTERR: internal errors
- any other integer may be defined and returned by other interfaces