Namespaces | Defines | Functions | Variables

src/Common/Exception/Handlers.h File Reference

Go to the source code of this file.

Namespaces

namespace  AppSecInc
namespace  AppSecInc::Exceptions

Defines

#define STD_EXCEPTION_HANDLER_BLOCK   catch (std::exception& e) { AppSecInc::Exceptions::STD_EXCEPTION_HANDLER_BLOCK_impl(e); return AppSecInc::Exceptions::default_error_code; }
#define COM_EXCEPTION_HANDLER_BLOCK   catch (_com_error& e) { AppSecInc::Exceptions::COM_EXCEPTION_HANDLER_BLOCK_impl(e); return e.Error(); }
#define ELLIPSIS_EXCEPTION_HANDLER_BLOCK   catch (...) { AppSecInc::Exceptions::ELLIPSIS_EXCEPTION_HANDLER_BLOCK_impl(); return E_UNEXPECTED; }
#define EXCEPTION_HANDLER_PROLOG   try {
#define EXCEPTION_HANDLER_EPILOG   } STD_EXCEPTION_HANDLER_BLOCK COM_EXCEPTION_HANDLER_BLOCK ELLIPSIS_EXCEPTION_HANDLER_BLOCK

Functions

void AppSecInc::Exceptions::COM_EXCEPTION_HANDLER_BLOCK_impl (_com_error &e)
void AppSecInc::Exceptions::STD_EXCEPTION_HANDLER_BLOCK_impl (std::exception &e)
void AppSecInc::Exceptions::ELLIPSIS_EXCEPTION_HANDLER_BLOCK_impl ()

Variables

const HRESULT AppSecInc::Exceptions::default_error_code = E_FAIL

Define Documentation

#define COM_EXCEPTION_HANDLER_BLOCK   catch (_com_error& e) { AppSecInc::Exceptions::COM_EXCEPTION_HANDLER_BLOCK_impl(e); return e.Error(); }
#define ELLIPSIS_EXCEPTION_HANDLER_BLOCK   catch (...) { AppSecInc::Exceptions::ELLIPSIS_EXCEPTION_HANDLER_BLOCK_impl(); return E_UNEXPECTED; }
#define EXCEPTION_HANDLER_EPILOG   } STD_EXCEPTION_HANDLER_BLOCK COM_EXCEPTION_HANDLER_BLOCK ELLIPSIS_EXCEPTION_HANDLER_BLOCK
#define EXCEPTION_HANDLER_PROLOG   try {
#define STD_EXCEPTION_HANDLER_BLOCK   catch (std::exception& e) { AppSecInc::Exceptions::STD_EXCEPTION_HANDLER_BLOCK_impl(e); return AppSecInc::Exceptions::default_error_code; }


© Application Security Inc. - All Rights Reserved http://msiext.codeplex.com