libzypp  13.10.6
ZYPP_THROW macros

Macros for throwing Exception. More...

Macros

#define ZYPP_THROW(EXCPT)   _ZYPP_THROW( EXCPT, ZYPP_EX_CODELOCATION )
 Drops a logline and throws the Exception. More...
 
#define ZYPP_CAUGHT(EXCPT)   _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_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_THROW( EXCPT, ZYPP_EX_CODELOCATION )

Drops a logline and throws the Exception.

Definition at line 320 of file Exception.h.

#define ZYPP_CAUGHT (   EXCPT)    _ZYPP_CAUGHT( EXCPT, ZYPP_EX_CODELOCATION )

Drops a logline telling the Exception was caught (in order to handle it).

Definition at line 324 of file Exception.h.

#define ZYPP_RETHROW (   EXCPT)    _ZYPP_RETHROW( EXCPT, ZYPP_EX_CODELOCATION )

Drops a logline and rethrows, updating the CodeLocation.

Definition at line 328 of file Exception.h.

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

Throw Exception built from a message string.

Definition at line 333 of file Exception.h.

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

Throw Exception built from errno.

Definition at line 337 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 341 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 345 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 349 of file Exception.h.