OMNI_EXCEPTION_TERMINATE
MACRO

OMNI_EXCEPTION_TERMINATE - The error call that is made when an exception happens within an omni::execption.

SYNOPSIS top

If an error occurs within an actual omni::exception (such as a null pointer reference on a string value), then this macro defines what is to be done.

DESCRIPTION top

The default value of this macro is to call std::terminate() so if an exception happens within an omni::exception, this macro is called.

An exception can happen in the omni::exception class if an invalid reference is specified when trying to add additional information to the exception. Example: omni::exception e("some info", NULL); will cause an inner exception to happen, thus std::terminate is called, alerting the developer of what happened.

CONSIDERATIONS top

You may define a different value for OMNI_EXCEPTION_TERMINATE, e.g. -DOMNI_EXCEPTION_TERMINATE=std::abort(); and std::abort will be called instead of std::terminate

PLATFORM SPECIFIC top

No platform specific notes.

NOTES top

None.