VirtualBox

Changeset 8681 in vbox for trunk


Ignore:
Timestamp:
May 7, 2008 8:27:57 PM (17 years ago)
Author:
vboxsync
Message:

Wrote the xpcom error message lookup table by hand. (there are so few and none has proper descriptions)

Location:
trunk/src/VBox/Runtime
Files:
1 deleted
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Runtime/Makefile.kmk

    r8524 r8681  
    13021302        $(QUIET)$(REDIRECT) -wo $@ -- $(SED) -f $< $(filter %.h,$^)
    13031303
    1304 $(PATH_TARGET)/errmsgxpcomdata.h: common/err/errmsgxpcom.sed $(DEPTH)/src/libs/xpcom18a4/xpcom/base/nsError.h
    1305         $(call MSG_GENERATE,,$@,$(filter %.h,$^))
    1306         $(QUIET)$(MKDIR) -p $(PATH_TARGET)
    1307         $(QUIET)$(REDIRECT) -wo $@ -- $(SED) -f $< $(filter %.h,$^)
    1308 
    13091304
    13101305#
  • trunk/src/VBox/Runtime/common/err/errmsgxpcom.cpp

    r8483 r8681  
    3232*   Header Files                                                               *
    3333*******************************************************************************/
    34 //#include <some xpcom header.h>
    35 
    3634#include <iprt/err.h>
    3735#include <iprt/asm.h>
     
    4846static const RTCOMERRMSG  g_aStatusMsgs[] =
    4947{
    50 //#include "errmsgxpcomdata.h"
    51     { "NS_SUCCESS", "Success", 0 },
     48    { "NS_OK",                              "Success",                                      UINT32_C(0x00000000) },
     49    { "NS_ERROR_NOT_IMPLEMENTED",           "Not implemented",                              UINT32_C(0x80004001) },
     50    { "NS_ERROR_NO_INTERFACE",              "Interface not supported",                      UINT32_C(0x80004002) },
     51    { "NS_ERROR_INVALID_POINTER",           "Invalid pointer value",                        UINT32_C(0x80004003) },
     52    { "NS_ERROR_ABORT",                     "Operation aborted",                            UINT32_C(0x80004004) },
     53    { "NS_ERROR_FAILURE",                   "Operation failed",                             UINT32_C(0x80004005) },
     54    { "NS_ERROR_UNEXPECTED",                "Unexpected error",                             UINT32_C(0x8000ffff) },
     55    { "NS_ERROR_OUT_OF_MEMORY",             "Memory allocation failed",                     UINT32_C(0x8007000e) },
     56    { "NS_ERROR_INVALID_ARG",               "Invalid argument value",                       UINT32_C(0x80070057) },
     57    { "NS_ERROR_NO_AGGREGATION",            "Class does not allow aggregation",             UINT32_C(0x80040110) },
     58    { "NS_ERROR_NOT_AVAILABLE",             "Resource not available",                       UINT32_C(0x80040111) },
     59    { "NS_ERROR_NOT_INITIALIZED",           "Instance not initialized",                     UINT32_C(0xc1f30001) },
     60    { "NS_ERROR_ALREADY_INITIALIZED",       "Instance already initialized",                 UINT32_C(0xc1f30002) },
     61
     62    { "NS_ERROR_FACTORY_NOT_REGISTERED",    "Class not registered",                         UINT32_C(0x80040154) },
     63    { "NS_ERROR_FACTORY_REGISTER_AGAIN",    "Cannot be registered, try again later",        UINT32_C(0x80040155) },
     64    { "NS_ERROR_FACTORY_NOT_LOADED",        "Dynamically loaded factory cannot be found",   UINT32_C(0x800401f8) },
     65    { "NS_ERROR_FACTORY_EXISTS",            "Factory already exists",                       UINT32_C(0xc1f30100) },
     66    { "NS_ERROR_FACTORY_NO_SIGNATURE_SUPPORT", "Factory does not support signatures",       UINT32_C(0xc1f30101) },
     67
     68    { "NS_ERROR_CANNOT_CONVERT_DATA",       "Cannot convert data",                          UINT32_C(0x80010001) },
     69    { "NS_ERROR_OBJECT_IS_IMMUTABLE",       "Object is immutable",                          UINT32_C(0x80010002) },
     70    { "NS_ERROR_LOSS_OF_SIGNIFICANT_DATA",  "Loss of significant data",                     UINT32_C(0x80010003) },
     71    { "NS_ERROR_PROXY_INVALID_IN_PARAMETER","Cannot proxy an IN parameter",                 UINT32_C(0x80010010) },
     72    { "NS_ERROR_PROXY_INVALID_OUT_PARAMETER", "Cannot proxy an OUT parameter",              UINT32_C(0x80010011) },
     73    { "NS_SUCCESS_LOSS_OF_INSIGNIFICANT_DATA", "Loss of insignificant data",                UINT32_C(0x00010001) },
     74
     75    { "NS_BASE_STREAM_CLOSED",              "Stream closed",                                UINT32_C(0x80470002) },
     76    { "NS_BASE_STREAM_OSERROR",             "Operative system stream error",                UINT32_C(0x80470003) },
     77    { "NS_BASE_STREAM_ILLEGAL_ARGS",        "Illegal argument to stream method",            UINT32_C(0x80470004) },
     78    { "NS_BASE_STREAM_NO_CONVERTER",        "No stream converter",                          UINT32_C(0x80470005) },
     79    { "NS_BASE_STREAM_BAD_CONVERSION",      "Badstream conversion",                         UINT32_C(0x80470006) },
     80    { "NS_BASE_STREAM_WOULD_BLOCK",         "Stream operation would block",                 UINT32_C(0x80470007) },
     81
     82    { "NS_ERROR_FILE_UNRECOGNIZED_PATH",    "Unrecognized path",                            UINT32_C(0x80520001) },
     83    { "NS_ERROR_FILE_UNRESOLVABLE_SYMLINK", "NS_ERROR_FILE_UNRESOLVABLE_SYMLINK",           UINT32_C(0x80520002) },
     84    { "NS_ERROR_FILE_EXECUTION_FAILED",     "NS_ERROR_FILE_EXECUTION_FAILED",               UINT32_C(0x80520003) },
     85    { "NS_ERROR_FILE_UNKNOWN_TYPE",         "NS_ERROR_FILE_UNKNOWN_TYPE",                   UINT32_C(0x80520004) },
     86    { "NS_ERROR_FILE_DESTINATION_NOT_DIR",  "NS_ERROR_FILE_DESTINATION_NOT_DIR",            UINT32_C(0x80520005) },
     87    { "NS_ERROR_FILE_TARGET_DOES_NOT_EXIST","NS_ERROR_FILE_TARGET_DOES_NOT_EXIST",          UINT32_C(0x80520006) },
     88    { "NS_ERROR_FILE_COPY_OR_MOVE_FAILED",  "NS_ERROR_FILE_COPY_OR_MOVE_FAILED",            UINT32_C(0x80520007) },
     89    { "NS_ERROR_FILE_ALREADY_EXISTS",       "NS_ERROR_FILE_ALREADY_EXISTS",                 UINT32_C(0x80520008) },
     90    { "NS_ERROR_FILE_INVALID_PATH",         "NS_ERROR_FILE_INVALID_PATH",                   UINT32_C(0x80520009) },
     91    { "NS_ERROR_FILE_DISK_FULL",            "NS_ERROR_FILE_DISK_FULL",                      UINT32_C(0x8052000a) },
     92    { "NS_ERROR_FILE_CORRUPTED",            "NS_ERROR_FILE_CORRUPTED",                      UINT32_C(0x8052000b) },
     93    { "NS_ERROR_FILE_NOT_DIRECTORY",        "NS_ERROR_FILE_NOT_DIRECTORY",                  UINT32_C(0x8052000c) },
     94    { "NS_ERROR_FILE_IS_DIRECTORY",         "NS_ERROR_FILE_IS_DIRECTORY",                   UINT32_C(0x8052000d) },
     95    { "NS_ERROR_FILE_IS_LOCKED",            "NS_ERROR_FILE_IS_LOCKED",                      UINT32_C(0x8052000e) },
     96    { "NS_ERROR_FILE_TOO_BIG",              "NS_ERROR_FILE_TOO_BIG",                        UINT32_C(0x8052000f) },
     97    { "NS_ERROR_FILE_NO_DEVICE_SPACE",      "NS_ERROR_FILE_NO_DEVICE_SPACE",                UINT32_C(0x80520010) },
     98    { "NS_ERROR_FILE_NAME_TOO_LONG",        "NS_ERROR_FILE_NAME_TOO_LONG",                  UINT32_C(0x80520011) },
     99    { "NS_ERROR_FILE_NOT_FOUND",            "NS_ERROR_FILE_NOT_FOUND",                      UINT32_C(0x80520012) },
     100    { "NS_ERROR_FILE_READ_ONLY",            "NS_ERROR_FILE_READ_ONLY",                      UINT32_C(0x80520013) },
     101    { "NS_ERROR_FILE_DIR_NOT_EMPTY",        "NS_ERROR_FILE_DIR_NOT_EMPTY",                  UINT32_C(0x80520014) },
     102    { "NS_ERROR_FILE_ACCESS_DENIED",        "NS_ERROR_FILE_ACCESS_DENIED",                  UINT32_C(0x80520015) },
     103    { "NS_SUCCESS_FILE_DIRECTORY_EMPTY",    "NS_SUCCESS_FILE_DIRECTORY_EMPTY",              UINT32_C(0x00520001) },
     104
    52105    { NULL, NULL, 0 }
    53106};
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette