Difference between revisions of "Errors description"

From WowWiki
Jump to navigation Jump to search
(Created page with "Test page")
 
Line 1: Line 1:
Test page
+
    // General errors
 +
    "",                // APP_ERROR_NONE
 +
    "Unknown",          // APP_ERROR_UNKNOWN
 +
    // WASM errors
 +
    // -- trap errors
 +
    "Stack Low",        // APP_ERROR_WASM_STACK_OVERFLOW                        "[trap] stack overflow"
 +
    "",                // APP_ERROR_WASM_OUT_OF_BOUNDS_MEMORY_ACCESS          "[trap] out of bounds memory access"
 +
    "Divide by zero",  // APP_ERROR_WASM_DIVISION_BY_ZERO                      "[trap] integer divide by zero"
 +
    "",                // APP_ERROR_WASM_INTEGER_OVERFLOW                      "[trap] integer overflow"
 +
    "",                // APP_ERROR_WASM_INVALID_CONVERSION_TO_INTEGER        "[trap] invalid conversion to integer"
 +
    "",                // APP_ERROR_WASM_INDIRECT_CALL_TYPE_MISMATCH          "[trap] indirect call type mismatch"
 +
    "",                // APP_ERROR_WASM_UNDEFINED_ELEMENT                    "[trap] undefined element"
 +
    "",                // APP_ERROR_WASM_NULL_TABLE_ELEMENT                    "[trap] null table element"
 +
    "Heap Low",        // APP_ERROR_WASM_EXIT                                  "[trap] program called exit"
 +
    "",                // APP_ERROR_WASM_ABORT                                "[trap] program called abort"
 +
    "",                // APP_ERROR_WASM_UNREACHABLE                          "[trap] unreachable executed"
 +
    // -- runtime errors
 +
    "",                // APP_ERROR_WASM_MISSING_COMPILED_CODE                "function is missing compiled m3 code"
 +
    "Memory overflow",  // APP_ERROR_WASM_MEMORY_OVERFLOW                      "runtime ran out of memory"
 +
    "",                // APP_ERROR_WASM_GLOBAL_MEMORY_NOT_ALLOCATED          "global memory is missing from a module"
 +
    "",                // APP_ERROR_WASM_GLOBAL_INDEX_OUT_OF_BOUNDS            "global index is too large"
 +
    "",                // APP_ERROR_WASM_ARGUMENT_COUNT_MISMATCH              "argument count mismatch"
 +
    "",                // APP_ERROR_WASM_ARGUMENT_TYPE_MISMATCH                "argument type mismatch"
 +
    "",                // APP_ERROR_WASM_GLOBAL_LOOKUP_FAILED                  "global lookup failed"
 +
    "",                // APP_ERROR_WASM_GLOBAL_TYPE_MISMATCH                  "global type mismatch"
 +
    "",                // APP_ERROR_WASM_GLOBAL_NOT_MUTABLE                    "global is not mutable"
 +
    // -- compilation errors
 +
    "",                // APP_ERROR_WASM_NO_COMPILER                          "no compiler found for opcode"
 +
    "",                // APP_ERROR_WASM_UNKNOWN_OPCODE                        "unknown opcode"
 +
    "",                // APP_ERROR_WASM_RESTRICTED_OPCODE                    "restricted opcode"
 +
    "Stack Low",        // APP_ERROR_WASM_FUNCTION_STACK_OVERFLOW              "compiling function overran its stack height limit"
 +
    "Stack Low",        // APP_ERROR_WASM_FUNCTION_STACK_UNDERRUN              "compiling function underran the stack"
 +
    "Cache Low",        // APP_ERROR_WASM_MALLOC_FAILED_CODE_PAGE              "memory allocation failed when acquiring a new M3 code page"
 +
    "",                // APP_ERROR_WASM_SETTING_IMMUTABLE_GLOBAL              "attempting to set an immutable global"
 +
    "",                // APP_ERROR_WASM_TYPE_MISMATCH                        "incorrect type on stack"
 +
    "",                // APP_ERROR_WASM_TYPE_COUNT_MISMATCH                  "incorrect value count on stack"
 +
    // -- link errors
 +
    "",                // APP_ERROR_WASM_MODULE_NOT_LINKED                    "attempting to use module that is not loaded"
 +
    "",                // APP_ERROR_WASM_MODULE_ALREADY_LINKED                "attempting to bind module to multiple runtimes"
 +
    "",                // APP_ERROR_WASM_FUNCTION_LOOKUP_FAILED                "function lookup failed"
 +
    "",                // APP_ERROR_WASM_FUNCTION_IMPORT_MISSING              "missing imported function"
 +
    "",                // APP_ERROR_WASM_MALFORMED_FUNCTION_SIGNATURE          "malformed function signature"
 +
    // -- parse errors
 +
    "",                // APP_ERROR_WASM_INCOMPATIBLE_WASM_VERSION            "incompatible Wasm binary version"
 +
    "",                // APP_ERROR_WASM_MALFORMED                            "malformed Wasm binary"
 +
    "",                // APP_ERROR_WASM_MISORDERED_SECTION                    "out of order Wasm section"
 +
    "",                // APP_ERROR_WASM_UNDERRUN                              "underrun while parsing Wasm binary"
 +
    "",                // APP_ERROR_WASM_OVERRUN                              "overrun while parsing Wasm binary"
 +
    "",                // APP_ERROR_WASM_MISSING_INIT_EXPR                    "missing init_expr in Wasm binary"
 +
    "",                // APP_ERROR_WASM_LEB_OVERFLOW                          "LEB encoded value overflow"
 +
    "",                // APP_ERROR_WASM_MISSING_UTF8,                        "invalid length UTF-8 string"
 +
    "",                // APP_ERROR_WASM_SECTION_UNDERERRUN,                  "section underrun while parsing Wasm binary"
 +
    "",                // APP_ERROR_WASM_SECTION_OVERRUN,                      "section overrun while parsing Wasm binary"
 +
    "",                // APP_ERROR_WASM_INVALID_TYPE_ID,                      "unknown value_type"
 +
    "",                // APP_ERROR_WASM_TOO_MANY_MEMORY_SECTIONS,            "only one memory per module is supported"
 +
    "",                // APP_ERROR_WASM_TOO_MANY_ARGS_RETS,                  "too many arguments or return values"
 +
    "",                // APP_ERROR_WASM_MALLOC_FAILED,                        "memory allocation failed"
 +
    // PAWN errors
 +
    "Forced exit",      // APP_ERROR_AMX_ERR_EXIT,
 +
    "",                // APP_ERROR_AMX_ERR_ASSERT,
 +
    "",                // APP_ERROR_AMX_ERR_STACKERR,                          "stack/heap collision"
 +
    "",                // APP_ERROR_AMX_ERR_BOUNDS,                            "index out of bounds"
 +
    "",                // APP_ERROR_AMX_ERR_MEMACCESS,                        "invalid memory access"
 +
    "",                // APP_ERROR_AMX_ERR_INVINSTR,                          "invalid instruction"
 +
    "Stack underflow",  // APP_ERROR_AMX_ERR_STACKLOW,                          "stack underflow"
 +
    "Heap underflow",  // APP_ERROR_AMX_ERR_HEAPLOW,                          "heap underflow"
 +
    "",                // APP_ERROR_AMX_ERR_CALLBACK,                          "no callback, or invalid callback"
 +
    "",                // APP_ERROR_AMX_ERR_NATIVE,                            "native function failed"
 +
    "Divide by zero",  // APP_ERROR_AMX_ERR_DIVIDE,                            "divide by zero"
 +
    "",                // APP_ERROR_AMX_ERR_SLEEP,                            "go into sleepmode - code can be restarted"
 +
    "",                // APP_ERROR_AMX_ERR_INVSTATE,                          "no implementation for this state, no fall-back"
 +
    "Out of memory",    // APP_ERROR_AMX_ERR_MEMORY,                            "out of memory"
 +
    "",                // APP_ERROR_AMX_ERR_FORMAT,                            "invalid file format"
 +
    "",                // APP_ERROR_AMX_ERR_VERSION,                          "file is for a newer version of the AMX"
 +
    "",                // APP_ERROR_AMX_ERR_NOTFOUND,                          "function not found"
 +
    "",                // APP_ERROR_AMX_ERR_INDEX,                            "invalid index parameter (bad entry point)"
 +
    "",                // APP_ERROR_AMX_ERR_DEBUG,                            "debugger cannot run"
 +
    "",                // APP_ERROR_AMX_ERR_INIT,                              "AMX not initialized (or doubly initialized)"
 +
    "",                // APP_ERROR_AMX_ERR_USERDATA,                          "unable to set user data field (table full)"
 +
    "",                // APP_ERROR_AMX_ERR_INIT_JIT,                          "cannot initialize the JIT"
 +
    "Parameter error",  // APP_ERROR_AMX_ERR_PARAMS,                            "parameter error"
 +
    "",                // APP_ERROR_AMX_ERR_DOMAIN,                            "domain error, expression result does not fit in range"
 +
    "",                // APP_ERROR_AMX_ERR_GENERAL,                          "general error (unknown or unspecific error)"
 +
    "",                // APP_ERROR_AMX_ERR_OVERLAY,                          "overlays are unsupported (JIT) or uninitialized"

Revision as of 13:42, 7 June 2024

   // General errors
   "",                 // APP_ERROR_NONE
   "Unknown",          // APP_ERROR_UNKNOWN
   // WASM errors
   // -- trap errors
   "Stack Low",        // APP_ERROR_WASM_STACK_OVERFLOW                        "[trap] stack overflow"
   "",                 // APP_ERROR_WASM_OUT_OF_BOUNDS_MEMORY_ACCESS           "[trap] out of bounds memory access"
   "Divide by zero",   // APP_ERROR_WASM_DIVISION_BY_ZERO                      "[trap] integer divide by zero"
   "",                 // APP_ERROR_WASM_INTEGER_OVERFLOW                      "[trap] integer overflow"
   "",                 // APP_ERROR_WASM_INVALID_CONVERSION_TO_INTEGER         "[trap] invalid conversion to integer"
   "",                 // APP_ERROR_WASM_INDIRECT_CALL_TYPE_MISMATCH           "[trap] indirect call type mismatch"
   "",                 // APP_ERROR_WASM_UNDEFINED_ELEMENT                     "[trap] undefined element"
   "",                 // APP_ERROR_WASM_NULL_TABLE_ELEMENT                    "[trap] null table element"
   "Heap Low",         // APP_ERROR_WASM_EXIT                                  "[trap] program called exit"
   "",                 // APP_ERROR_WASM_ABORT                                 "[trap] program called abort"
   "",                 // APP_ERROR_WASM_UNREACHABLE                           "[trap] unreachable executed"
   // -- runtime errors
   "",                 // APP_ERROR_WASM_MISSING_COMPILED_CODE                 "function is missing compiled m3 code"
   "Memory overflow",  // APP_ERROR_WASM_MEMORY_OVERFLOW                       "runtime ran out of memory"
   "",                 // APP_ERROR_WASM_GLOBAL_MEMORY_NOT_ALLOCATED           "global memory is missing from a module"
   "",                 // APP_ERROR_WASM_GLOBAL_INDEX_OUT_OF_BOUNDS            "global index is too large"
   "",                 // APP_ERROR_WASM_ARGUMENT_COUNT_MISMATCH               "argument count mismatch"
   "",                 // APP_ERROR_WASM_ARGUMENT_TYPE_MISMATCH                "argument type mismatch"
   "",                 // APP_ERROR_WASM_GLOBAL_LOOKUP_FAILED                  "global lookup failed"
   "",                 // APP_ERROR_WASM_GLOBAL_TYPE_MISMATCH                  "global type mismatch"
   "",                 // APP_ERROR_WASM_GLOBAL_NOT_MUTABLE                    "global is not mutable"
   // -- compilation errors
   "",                 // APP_ERROR_WASM_NO_COMPILER                           "no compiler found for opcode"
   "",                 // APP_ERROR_WASM_UNKNOWN_OPCODE                        "unknown opcode"
   "",                 // APP_ERROR_WASM_RESTRICTED_OPCODE                     "restricted opcode"
   "Stack Low",        // APP_ERROR_WASM_FUNCTION_STACK_OVERFLOW               "compiling function overran its stack height limit"
   "Stack Low",        // APP_ERROR_WASM_FUNCTION_STACK_UNDERRUN               "compiling function underran the stack"
   "Cache Low",        // APP_ERROR_WASM_MALLOC_FAILED_CODE_PAGE               "memory allocation failed when acquiring a new M3 code page"
   "",                 // APP_ERROR_WASM_SETTING_IMMUTABLE_GLOBAL              "attempting to set an immutable global"
   "",                 // APP_ERROR_WASM_TYPE_MISMATCH                         "incorrect type on stack"
   "",                 // APP_ERROR_WASM_TYPE_COUNT_MISMATCH                   "incorrect value count on stack"
   // -- link errors
   "",                 // APP_ERROR_WASM_MODULE_NOT_LINKED                     "attempting to use module that is not loaded"
   "",                 // APP_ERROR_WASM_MODULE_ALREADY_LINKED                 "attempting to bind module to multiple runtimes"
   "",                 // APP_ERROR_WASM_FUNCTION_LOOKUP_FAILED                "function lookup failed"
   "",                 // APP_ERROR_WASM_FUNCTION_IMPORT_MISSING               "missing imported function"
   "",                 // APP_ERROR_WASM_MALFORMED_FUNCTION_SIGNATURE          "malformed function signature"
   // -- parse errors
   "",                 // APP_ERROR_WASM_INCOMPATIBLE_WASM_VERSION             "incompatible Wasm binary version"
   "",                 // APP_ERROR_WASM_MALFORMED                             "malformed Wasm binary"
   "",                 // APP_ERROR_WASM_MISORDERED_SECTION                    "out of order Wasm section"
   "",                 // APP_ERROR_WASM_UNDERRUN                              "underrun while parsing Wasm binary"
   "",                 // APP_ERROR_WASM_OVERRUN                               "overrun while parsing Wasm binary"
   "",                 // APP_ERROR_WASM_MISSING_INIT_EXPR                     "missing init_expr in Wasm binary"
   "",                 // APP_ERROR_WASM_LEB_OVERFLOW                          "LEB encoded value overflow"
   "",                 // APP_ERROR_WASM_MISSING_UTF8,                         "invalid length UTF-8 string"
   "",                 // APP_ERROR_WASM_SECTION_UNDERERRUN,                   "section underrun while parsing Wasm binary"
   "",                 // APP_ERROR_WASM_SECTION_OVERRUN,                      "section overrun while parsing Wasm binary"
   "",                 // APP_ERROR_WASM_INVALID_TYPE_ID,                      "unknown value_type"
   "",                 // APP_ERROR_WASM_TOO_MANY_MEMORY_SECTIONS,             "only one memory per module is supported"
   "",                 // APP_ERROR_WASM_TOO_MANY_ARGS_RETS,                   "too many arguments or return values"
   "",                 // APP_ERROR_WASM_MALLOC_FAILED,                        "memory allocation failed"
   // PAWN errors
   "Forced exit",      // APP_ERROR_AMX_ERR_EXIT,
   "",                 // APP_ERROR_AMX_ERR_ASSERT,
   "",                 // APP_ERROR_AMX_ERR_STACKERR,                          "stack/heap collision"
   "",                 // APP_ERROR_AMX_ERR_BOUNDS,                            "index out of bounds"
   "",                 // APP_ERROR_AMX_ERR_MEMACCESS,                         "invalid memory access"
   "",                 // APP_ERROR_AMX_ERR_INVINSTR,                          "invalid instruction"
   "Stack underflow",  // APP_ERROR_AMX_ERR_STACKLOW,                          "stack underflow"
   "Heap underflow",   // APP_ERROR_AMX_ERR_HEAPLOW,                           "heap underflow"
   "",                 // APP_ERROR_AMX_ERR_CALLBACK,                          "no callback, or invalid callback"
   "",                 // APP_ERROR_AMX_ERR_NATIVE,                            "native function failed"
   "Divide by zero",   // APP_ERROR_AMX_ERR_DIVIDE,                            "divide by zero"
   "",                 // APP_ERROR_AMX_ERR_SLEEP,                             "go into sleepmode - code can be restarted"
   "",                 // APP_ERROR_AMX_ERR_INVSTATE,                          "no implementation for this state, no fall-back"
   "Out of memory",    // APP_ERROR_AMX_ERR_MEMORY,                            "out of memory"
   "",                 // APP_ERROR_AMX_ERR_FORMAT,                            "invalid file format"
   "",                 // APP_ERROR_AMX_ERR_VERSION,                           "file is for a newer version of the AMX"
   "",                 // APP_ERROR_AMX_ERR_NOTFOUND,                          "function not found"
   "",                 // APP_ERROR_AMX_ERR_INDEX,                             "invalid index parameter (bad entry point)"
   "",                 // APP_ERROR_AMX_ERR_DEBUG,                             "debugger cannot run"
   "",                 // APP_ERROR_AMX_ERR_INIT,                              "AMX not initialized (or doubly initialized)"
   "",                 // APP_ERROR_AMX_ERR_USERDATA,                          "unable to set user data field (table full)"
   "",                 // APP_ERROR_AMX_ERR_INIT_JIT,                          "cannot initialize the JIT"
   "Parameter error",  // APP_ERROR_AMX_ERR_PARAMS,                            "parameter error"
   "",                 // APP_ERROR_AMX_ERR_DOMAIN,                            "domain error, expression result does not fit in range"
   "",                 // APP_ERROR_AMX_ERR_GENERAL,                           "general error (unknown or unspecific error)"
   "",                 // APP_ERROR_AMX_ERR_OVERLAY,                           "overlays are unsupported (JIT) or uninitialized"