comet::throw_error_handler< OVERRIDE > Struct Template Reference
[ErrorHandlingErrorHandling]

#include <comet\error_fwd.h>

List of all members.

Static Public Member Functions

void throw_error (HRESULT hr, const com_ptr< IErrorInfo > &ei)
 Called to throw the error.


Detailed Description

template<bool OVERRIDE>
struct comet::throw_error_handler< OVERRIDE >

! Overridable error info handling. To override the error handling, use code like this, making sure that you define the handler before including comet/error.h.
                        #include <comet/error_fwd.h>
                        template<> struct throw_error_handler<true>
                        {
                                static inline void throw_error(HRESULT hr, const com_ptr<IErrorInfo> &ei);
                        };
                        #include <comet/error.h>
                        // #include <mycustomerror.h>
                        template<>
                        inline void throw_error_handler<true>::throw_error(HRESULT hr, const com_ptr<IErrorInfo> &ei)
                        {
                        .... Override here ....
                        }


The documentation for this struct was generated from the following files: