§tiro::error_adapter
Error adapter class for the tiroerror_t* argument expected by most tiro* functions. More...
#include "tiropp/error.hpp"
§Public Functions
Name | |
---|---|
error_adapter() =default | |
~error_adapter() | |
error_adapter(error_adapter && ) =delete | |
error_adapter & | operator=(error_adapter && ) =delete |
operator tiro_error_t *() |
§Detailed Description
class tiro::error_adapter;
Error adapter class for the tiroerror_t* argument expected by most tiro* functions.
This class implicitly converts to a tiro_error_t* and will throw any error from its destructor.
Thanks to Stefanus Du Toit (https://www.slideshare.net/StefanusDuToit/cpp-con-2014-hourglass-interfaces-for-c-apis) for showing this technique.
§Public Functions Documentation
§function error_adapter
error_adapter() =default
§function ~error_adapter
inline ~error_adapter()
§function error_adapter
error_adapter(error_adapter &&) =delete
§function operator=
error_adapter & operator=(error_adapter &&) =delete
§function operator tiro_error_t *
inline operator tiro_error_t *()
Updated on 2022-02-27 at 21:17:13 +0100