#include <cerrno>#include <iosfwd>#include <list>#include <stdexcept>Go to the source code of this file.
Namespaces | |
| namespace | zypp |
| namespace | zypp::exception_detail |
Classes | |
| struct | zypp::exception_detail::CodeLocation |
| Keep _FILE_, _FUNCTION_ and _LINE_. More... | |
| class | zypp::Exception |
| Base class for Exception. More... | |
Defines | |
| #define | ZYPP_EX_CODELOCATION ::zypp::exception_detail::CodeLocation(( *__FILE__ == '/' ? strrchr( __FILE__, '/' ) + 1 : __FILE__ ),__FUNCTION__,__LINE__) |
| Create CodeLocation object storing the current location. | |
| #define | ZYPP_THROW(EXCPT) _ZYPP_THROW( EXCPT, ZYPP_EX_CODELOCATION ) |
| Drops a logline and throws the Exception. | |
| #define | ZYPP_CAUGHT(EXCPT) _ZYPP_CAUGHT( EXCPT, ZYPP_EX_CODELOCATION ) |
| Drops a logline telling the Exception was caught (in order to handle it). | |
| #define | ZYPP_RETHROW(EXCPT) _ZYPP_RETHROW( EXCPT, ZYPP_EX_CODELOCATION ) |
| Drops a logline and rethrows, updating the CodeLocation. | |
| #define | ZYPP_THROW_MSG(EXCPTTYPE, MSG) ZYPP_THROW( EXCPTTYPE( MSG ) ) |
| Throw Exception built from a message string. | |
| #define | ZYPP_THROW_ERRNO(EXCPTTYPE) ZYPP_THROW( EXCPTTYPE( ::zypp::Exception::strErrno(errno) ) ) |
| Throw Exception built from errno. | |
| #define | ZYPP_THROW_ERRNO1(EXCPTTYPE, ERRNO) ZYPP_THROW( EXCPTTYPE( ::zypp::Exception::strErrno(ERRNO) ) ) |
| Throw Exception built from errno provided as argument. | |
| #define | ZYPP_THROW_ERRNO_MSG(EXCPTTYPE, MSG) ZYPP_THROW( EXCPTTYPE( ::zypp::Exception::strErrno(errno,MSG) ) ) |
| Throw Exception built from errno and a message string. | |
| #define | ZYPP_THROW_ERRNO_MSG1(EXCPTTYPE, ERRNO, MSG) ZYPP_THROW( EXCPTTYPE( ::zypp::Exception::strErrno(ERRNO,MSG) ) ) |
| Throw Exception built from errno provided as argument and a message string. | |
Functions | |
| template<class _Excpt> | |
| void | zypp::_ZYPP_THROW (const _Excpt &excpt_r, const exception_detail::CodeLocation &where_r) __attribute__((noreturn)) |
| Helper for ZYPP_THROW macros. | |
| template<class _Excpt> | |
| void | zypp::_ZYPP_CAUGHT (const _Excpt &excpt_r, const exception_detail::CodeLocation &where_r) |
| Helper for ZYPP_THROW macros. | |
| template<class _Excpt> | |
| void | zypp::_ZYPP_RETHROW (const _Excpt &excpt_r, const exception_detail::CodeLocation &where_r) __attribute__((noreturn)) |
| Helper for ZYPP_THROW macros. | |
Definition in file Exception.h.
| #define ZYPP_EX_CODELOCATION ::zypp::exception_detail::CodeLocation(( *__FILE__ == '/' ? strrchr( __FILE__, '/' ) + 1 : __FILE__ ),__FUNCTION__,__LINE__) |
1.5.3