#if !defined No_Exception && !defined No_Standard_NoSuchObject
#define Standard_NoSuchObject_Raise_if(CONDITION, MESSAGE) \
- if (CONDITION) Standard_NoSuchObject::Raise(MESSAGE);
+ if (CONDITION) throw Standard_NoSuchObject(MESSAGE);
#else
#define Standard_NoSuchObject_Raise_if(CONDITION, MESSAGE)
#endif