Difference between revisions of "Errors description"

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

Revision as of 13:46, 7 June 2024

   // General errors
   "",                 
   "Unknown",         
   // WASM errors
   // -- trap errors
   "Stack Low",                                "[trap] stack overflow"
   "",                           "[trap] out of bounds memory access"
   "Divide by zero",                        "[trap] integer divide by zero"
   "",                                       "[trap] integer overflow"
   "",                         "[trap] invalid conversion to integer"
   "",                            "[trap] indirect call type mismatch"
   "",                                      "[trap] undefined element"
   "",                                  "[trap] null table element"
   "Heap Low",                                           "[trap] program called exit"
   "",                                                  "[trap] program called abort"
   "",                                          "[trap] unreachable executed"
   // -- runtime errors
   "",                                 "function is missing compiled m3 code"
   "Memory overflow",                         "runtime ran out of memory"
   "",                          "global memory is missing from a module"
   "",                           "global index is too large"
   "",                               "argument count mismatch"
   "",                                 "argument type mismatch"
   "",                                   "global lookup failed"
   "",                                   "global type mismatch"
   "",                                    "global is not mutable"
   // -- compilation errors
   "",                                            "no compiler found for opcode"
   "",                                         "unknown opcode"
   "",                                      "restricted opcode"
   "Stack Low",                       "compiling function overran its stack height limit"
   "Stack Low",                      "compiling function underran the stack"
   "Cache Low",                      "memory allocation failed when acquiring a new M3 code page"
   "",                               "attempting to set an immutable global"
   "",                                         "incorrect type on stack"
   "",                                   "incorrect value count on stack"
   // -- link errors
   "",                                     "attempting to use module that is not loaded"
   "",                                  "attempting to bind module to multiple runtimes"
   "",                                "function lookup failed"
   "",                               "missing imported function"
   "",                           "malformed function signature"
   // -- parse errors
   "",                              "incompatible Wasm binary version"
   "",                                          "malformed Wasm binary"
   "",                                    "out of order Wasm section"
   "",                                               "underrun while parsing Wasm binary"
   "",                                                "overrun while parsing Wasm binary"
   "",                                      "missing init_expr in Wasm binary"
   "",                                          "LEB encoded value overflow"
   "",                                          "invalid length UTF-8 string"
   "",                                    "section underrun while parsing Wasm binary"
   "",                                       "section overrun while parsing Wasm binary"
   "",                                      "unknown value_type"
   "",                              "only one memory per module is supported"
   "",                                    "too many arguments or return values"
   "",                                         "memory allocation failed"
   // PAWN errors
   "Forced exit",      
   "",                 "asert"
   "",                                          "stack/heap collision"
   "",                                             "index out of bounds"
   "",                                          "invalid memory access"
   "",                                          "invalid instruction"
   "Stack underflow",                            "stack underflow"
   "Heap underflow",                              "heap underflow"
   "",                                           "no callback, or invalid callback"
   "",                                            "native function failed"
   "Divide by zero",                               "divide by zero"
   "",                                              "go into sleepmode - code can be restarted"
   "",                                           "no implementation for this state, no fall-back"
   "Out of memory",                                "out of memory"
   "",                                             "invalid file format"
   "",                                            "file is for a newer version of the AMX"
   "",                                           "function not found"
   "",                                              "invalid index parameter (bad entry point)"
   "",                                              "debugger cannot run"
   "",                                               "AMX not initialized (or doubly initialized)"
   "",                                           "unable to set user data field (table full)"
   "",                                           "cannot initialize the JIT"
   "Parameter error",                              "parameter error"
   "",                                             "domain error, expression result does not fit in range"
   "",                                            "general error (unknown or unspecific error)"
   "",                                            "overlays are unsupported (JIT) or uninitialized"