This function is called by error_condition's constructor for error condition enum types, and should be overloaded for all error condition enum types defined in order to provide a mechanism to generate the appropriate error_condition objects from them.