GME  13
Classes | Defines | Functions | Variables
CommonError.cpp File Reference

Go to the source code of this file.

Classes

struct  errtab

Defines

#define MGAERRCODEBASE   0x87650000
#define MGAERRCODESPAN   0x1000

Functions

void throw_com_error (HRESULT hr, LPCOLESTR desc)
void throw_last_com_error (HRESULT hr)
void SetErrorInfo (LPCOLESTR desc)
LPCOLESTR MgaGetErrorInfo (HRESULT hr)
bool MgaSetErrorInfo (HRESULT hr)
void SetErrorInfo (HRESULT hr, LPOLESTR desc2)
bool GetErrorInfo (BSTR *desc)
void GetErrorInfo (HRESULT hr, BSTR *p)

Variables

LPOLESTR common_descs []
LPOLESTR core_descs []
LPOLESTR meta_descs []
LPOLESTR parser_descs []

Define Documentation

#define MGAERRCODEBASE   0x87650000

Definition at line 169 of file CommonError.cpp.

#define MGAERRCODESPAN   0x1000

Definition at line 170 of file CommonError.cpp.


Function Documentation

bool GetErrorInfo ( BSTR *  desc)

Definition at line 226 of file CommonError.cpp.

void GetErrorInfo ( HRESULT  hr,
BSTR *  p 
)

Definition at line 246 of file CommonError.cpp.

LPCOLESTR MgaGetErrorInfo ( HRESULT  hr)

Definition at line 172 of file CommonError.cpp.

bool MgaSetErrorInfo ( HRESULT  hr)

Definition at line 183 of file CommonError.cpp.

void SetErrorInfo ( LPCOLESTR  desc)

Definition at line 140 of file CommonError.cpp.

void SetErrorInfo ( HRESULT  hr,
LPOLESTR  desc2 
)

Definition at line 193 of file CommonError.cpp.

void throw_com_error ( HRESULT  hr,
LPCOLESTR  desc 
)

Definition at line 104 of file CommonError.cpp.

void throw_last_com_error ( HRESULT  hr)

Definition at line 127 of file CommonError.cpp.


Variable Documentation

LPOLESTR common_descs[]
Initial value:
 
{
        OLESTR("Improper use of object"),
        OLESTR("Unknown exception"),
        OLESTR("Data conversion has failed"),
        OLESTR("Requested != count in GetAll"),
        OLESTR("[out] parameter is not empty"),
        OLESTR("Passed interface is not from the same project"),
        OLESTR("Object was not found"),
        OLESTR("File could not be opened"),
        OLESTR("VERIFY has failed"),
        OLESTR("COMTHROW test exception throwed"),
}

Definition at line 49 of file CommonError.cpp.

LPOLESTR core_descs[]
Initial value:
 
{
        OLESTR("Object is locked by another Core component"),
        OLESTR("Lock value in Storage is invalid"),
        OLESTR("Attribute is not found"),
        OLESTR("Meta object is not found"),
        OLESTR("Meta project is invalid"),
        OLESTR("Invalid response from Repository"),
        OLESTR("CoreProject - CoreMetaProject mismatch"),
        OLESTR("Object is deleted or unloaded (zombie)"),
        OLESTR("Invalid ValueType"),
        OLESTR("No active transaction"),
        OLESTR("Object already exists"),
        OLESTR("No Territory has been selected"),
        OLESTR("Object is not locked"),
        OLESTR("Invalid data in Repository"),
        OLESTR("Cannot delete Object, has nonempty collection"),
        OLESTR("Cannot resolve the connection string"),
        OLESTR("Invalid binary file storage"),
        OLESTR("Project has no name"),
}

Definition at line 63 of file CommonError.cpp.

LPOLESTR meta_descs[]
Initial value:
 
{
        OLESTR("Invalid ATTVAL type"),
        OLESTR("MetaProject is not open"),
        OLESTR("Invalid Path"),

}

Definition at line 85 of file CommonError.cpp.

LPOLESTR parser_descs[]
Initial value:
 
{
        OLESTR("Invalid DTD file"),
        OLESTR("Invalid GUID"),
        OLESTR("Invalid XML filename"),
        OLESTR("Invalid MGA object"),
        OLESTR("Invalid META object"),
        OLESTR("Too many passes while parsing the XML file"),

}

Definition at line 93 of file CommonError.cpp.