|
libzypp
17.37.18
|
Macros for throwing Exception. More...
Macros | |
| #define | ZYPP_THROW(EXCPT) ::zypp::exception_detail::do_ZYPP_THROW( EXCPT, ZYPP_EX_CODELOCATION ) |
| Drops a logline and throws the Exception. More... | |
| #define | ZYPP_EXCPT_PTR(EXCPT) ::zypp::exception_detail::do_ZYPP_EXCPT_PTR( EXCPT, ZYPP_EX_CODELOCATION ) |
| Drops a logline and returns Exception as a std::exception_ptr. More... | |
| #define | ZYPP_FWD_EXCPT(EXCPT) ::zypp::exception_detail::do_ZYPP_FWD_EXCPT_PTR( EXCPT, ZYPP_EX_CODELOCATION ) |
| Drops a logline and returns the given Exception as a std::exception_ptr. More... | |
| #define | ZYPP_FWD_CURRENT_EXCPT() ::zypp::exception_detail::do_ZYPP_FWD_EXCPT_PTR( std::current_exception(), ZYPP_EX_CODELOCATION ) |
| Drops a logline and returns the current Exception as a std::exception_ptr. More... | |
| #define | ZYPP_CAUGHT(EXCPT) ::zypp::exception_detail::do_ZYPP_CAUGHT( EXCPT, ZYPP_EX_CODELOCATION ) |
| Drops a logline telling the Exception was caught (in order to handle it). More... | |
| #define | ZYPP_RETHROW(EXCPT) ::zypp::exception_detail::do_ZYPP_RETHROW( EXCPT, ZYPP_EX_CODELOCATION ) |
| Drops a logline and rethrows, updating the CodeLocation. More... | |
| #define | ZYPP_THROW_MSG(EXCPTTYPE, MSG) ZYPP_THROW( EXCPTTYPE( MSG ) ) |
| Throw Exception built from a message string. More... | |
| #define | ZYPP_THROW_ERRNO(EXCPTTYPE) ZYPP_THROW( EXCPTTYPE( ::zypp::Exception::strErrno(errno) ) ) |
| Throw Exception built from errno. More... | |
| #define | ZYPP_THROW_ERRNO1(EXCPTTYPE, ERRNO) ZYPP_THROW( EXCPTTYPE( ::zypp::Exception::strErrno(ERRNO) ) ) |
| Throw Exception built from errno provided as argument. More... | |
| #define | ZYPP_THROW_ERRNO_MSG(EXCPTTYPE, MSG) ZYPP_THROW( EXCPTTYPE( ::zypp::Exception::strErrno(errno,MSG) ) ) |
| Throw Exception built from errno and a message string. More... | |
| #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. More... | |
Macros for throwing Exception.
| #define ZYPP_THROW | ( | EXCPT | ) | ::zypp::exception_detail::do_ZYPP_THROW( EXCPT, ZYPP_EX_CODELOCATION ) |
Drops a logline and throws the Exception.
Definition at line 459 of file Exception.h.
| #define ZYPP_EXCPT_PTR | ( | EXCPT | ) | ::zypp::exception_detail::do_ZYPP_EXCPT_PTR( EXCPT, ZYPP_EX_CODELOCATION ) |
Drops a logline and returns Exception as a std::exception_ptr.
Definition at line 463 of file Exception.h.
| #define ZYPP_FWD_EXCPT | ( | EXCPT | ) | ::zypp::exception_detail::do_ZYPP_FWD_EXCPT_PTR( EXCPT, ZYPP_EX_CODELOCATION ) |
Drops a logline and returns the given Exception as a std::exception_ptr.
Definition at line 467 of file Exception.h.
| #define ZYPP_FWD_CURRENT_EXCPT | ( | ) | ::zypp::exception_detail::do_ZYPP_FWD_EXCPT_PTR( std::current_exception(), ZYPP_EX_CODELOCATION ) |
Drops a logline and returns the current Exception as a std::exception_ptr.
Definition at line 471 of file Exception.h.
| #define ZYPP_CAUGHT | ( | EXCPT | ) | ::zypp::exception_detail::do_ZYPP_CAUGHT( EXCPT, ZYPP_EX_CODELOCATION ) |
Drops a logline telling the Exception was caught (in order to handle it).
Definition at line 475 of file Exception.h.
| #define ZYPP_RETHROW | ( | EXCPT | ) | ::zypp::exception_detail::do_ZYPP_RETHROW( EXCPT, ZYPP_EX_CODELOCATION ) |
Drops a logline and rethrows, updating the CodeLocation.
Definition at line 479 of file Exception.h.
| #define ZYPP_THROW_MSG | ( | EXCPTTYPE, | |
| MSG | |||
| ) | ZYPP_THROW( EXCPTTYPE( MSG ) ) |
Throw Exception built from a message string.
Definition at line 484 of file Exception.h.
| #define ZYPP_THROW_ERRNO | ( | EXCPTTYPE | ) | ZYPP_THROW( EXCPTTYPE( ::zypp::Exception::strErrno(errno) ) ) |
Throw Exception built from errno.
Definition at line 488 of file Exception.h.
| #define ZYPP_THROW_ERRNO1 | ( | EXCPTTYPE, | |
| ERRNO | |||
| ) | ZYPP_THROW( EXCPTTYPE( ::zypp::Exception::strErrno(ERRNO) ) ) |
Throw Exception built from errno provided as argument.
Definition at line 492 of file Exception.h.
| #define ZYPP_THROW_ERRNO_MSG | ( | EXCPTTYPE, | |
| MSG | |||
| ) | ZYPP_THROW( EXCPTTYPE( ::zypp::Exception::strErrno(errno,MSG) ) ) |
Throw Exception built from errno and a message string.
Definition at line 496 of file Exception.h.
| #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.
Definition at line 500 of file Exception.h.