Skip to content

BitException

Oz edited this page Sep 3, 2019 · 12 revisions

The BitException class represents a generic exception thrown from the bit7z classes.

#include "bitexception.hpp"

inherits from runtime_error.

List of all members

Public Members

Return type Name
BitException( const char *message, HRESULT code=E_FAIL )
BitException( const char *message, DWORD code )
BitException( const wstring &message, HRESULT code=E_FAIL )
BitException( const wstring &message, DWORD code )
HRESULT getErrorCode()

Member Function Documentation

BitException( const char *message, HRESULT code=E_FAIL )

Constructs a BitException object with the given message.


BitException( const char *message, DWORD code )

Constructs a BitException object with the given message.

Note: The Win32 error code is converted to a HRESULT code through HRESULT_FROM_WIN32 macro.


BitException( const wstring &message, HRESULT code=E_FAIL )

Constructs a BitException object with the given message.

Note: The wstring argument is converted into a string and then passed to the base class constructor.


BitException( const wstring &message, DWORD code )

Constructs a BitException object with the given message.

Note: The wstring argument is converted into a string and then passed to the base class constructor.


HRESULT getErrorCode()

Returns the HRESULT code associated with the exception object.


Clone this wiki locally