enum OnErrorInfoFailture |
The constant ERROR_INFO_INIT_FAILED is used as a marker for constructors of the CErrorInfoImpl template class parameter of the SetLastChsvErrorInformation function.
The constant is used to denote the situation when the normal construction of the CErrorInfoImpl object fails. The appropriate code handling the basic failure is to be defined within the special form of CErrorInfoImpl(OnErrorInfoFailture) of overloaded constructors of the CErrorInfoImpl user-defined class. The call to such constructor has to create a valid object according to the failure.