ErrorHandling


Namespaces

namespace  comet::impl
 Namespace for comet implementation details.
namespace  comet::impl
 Namespace for comet implementation details.
namespace  comet::impl
 Namespace for comet implementation details.
namespace  comet::impl
 Namespace for comet implementation details.

Classes

class  comet::datetime_exception
 Exception for datetimes. More...
class  comet::com_error
struct  comet::throw_error_handler< OVERRIDE >
struct  comet::source_info_t
 Specifies the source of an exception. More...
struct  comet::error_logger_< OVERRIDE >
struct  comet::comet_exception_handler< OVERRIDE >
struct  comet::handle_exception_default< COCLASS >
struct  comet::handle_exception_default< nil >
class  comet::com_error
struct  comet::throw_error_handler< OVERRIDE >
struct  comet::error_logger_< OVERRIDE >
struct  comet::handle_exception_default< COCLASS >

Defines

#define COMET_ASSERT   _ASSERTE

Functions

template<typename Itf> void comet::throw_com_error (Itf *p, HRESULT hr)
HRESULT comet::operator| (HRESULT hr, const impl::raise_exception_t &)
 Overload for the 'do or die' useage of raise_exception.
void comet::throw_error_handler::throw_error (HRESULT hr, const com_ptr< IErrorInfo > &ei)
 Called to throw the error.

Define Documentation

#define COMET_ASSERT   _ASSERTE
 

Assertion in commet.

See also:
COMET_THROWS_ASSERT COMET_ASSERT_THROWS_ALWAYS


Function Documentation

HRESULT operator| HRESULT  hr,
const impl::raise_exception_t & 
[inline]
 

Overload for the 'do or die' useage of raise_exception.

                try() | raise_exception; 

template<typename Itf>
void throw_com_error Itf *  p,
HRESULT  hr
[inline]
 

Throw COM error using com_error, using HRESULT and IErrorInfo.