libzypp  15.28.6
ZYPP_THROW macros

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_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...
 

Detailed Description

Macros for throwing Exception.

See Also
zypp::Exception for an example.

Macro Definition Documentation

#define ZYPP_THROW (   EXCPT)    ::zypp::exception_detail::do_ZYPP_THROW( EXCPT, ZYPP_EX_CODELOCATION )

Drops a logline and throws the Exception.

Definition at line 321 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 325 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 329 of file Exception.h.

#define ZYPP_THROW_MSG (   EXCPTTYPE,
  MSG 
)    ZYPP_THROW( EXCPTTYPE( MSG ) )

Throw Exception built from a message string.

Definition at line 334 of file Exception.h.

#define ZYPP_THROW_ERRNO (   EXCPTTYPE)    ZYPP_THROW( EXCPTTYPE( ::zypp::Exception::strErrno(errno) ) )

Throw Exception built from errno.

Definition at line 338 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 342 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 346 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 350 of file Exception.h.