oaException.h File Reference

Go to the source code of this file.

Compounds

class  oaCompatibilityError
class  oaError
class  oaException
class  oaMemoryError
class  oaOSError
class  oaSocketError

Defines

#define oaException_P
#define oaValidate(exp, errorID)
#define oaAssert(exp)
#define oaInternalError(str)   throw oa::oaError(oa::oacInternalError, str, __FILE__, __LINE__)
#define oaUnexpectedCase(value)


Define Documentation

#define oaAssert exp   
 

Value:

{\
    if (!(exp)) {\
        throw oa::oaError(oa::oacInternalError, #exp, __FILE__, __LINE__);\
    }\
}

#define oaException_P
 

#define oaInternalError str       throw oa::oaError(oa::oacInternalError, str, __FILE__, __LINE__)
 

#define oaUnexpectedCase value   
 

Value:

{\
    oa::oaString    str;\
    \
    str.format("Unexpected case %d", (oaUInt4) value);\
    \
    throw oa::oaError(oa::oacInternalError, (const char *) str, __FILE__, __LINE__);\
}

#define oaValidate exp,
errorID   
 

Value:

{\
    if (!(exp)) {\
        throw oa::oaError(errorID);\
    }\
}

Return to top of page