NCBI C++ ToolKit
Classes | Macros | Typedefs
exception.hpp File Reference
#include <corelib/ncbistd.hpp>
#include <corelib/ncbiexpt.hpp>
+ Include dependency graph for exception.hpp:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Go to the SVN repository for this file.

Classes

class  CSraException
 

Macros

#define NCBI_EXCEPTION3_VAR(name, exc_cls, err_code, msg, extra1, extra2)
 Create an instance of the exception with one additional parameter. More...
 
#define NCBI_EXCEPTION3(exc_cls, err_code, msg, extra1, extra2)
 
#define NCBI_THROW3(exc_cls, err_code, msg, extra1, extra2)    throw NCBI_EXCEPTION3(exc_cls, err_code, msg, extra1, extra2)
 
#define NCBI_RETHROW3(prev_exc, exc_cls, err_code, msg, extra1, extra2)
 
#define NCBI_THROW2_FMT(exception_class, err_code, message, extra)    throw NCBI_EXCEPTION2(exception_class, err_code, FORMAT(message), extra)
 
#define CHECK_VDB_TIMEOUT(msg, rc)
 
#define CHECK_VDB_TIMEOUT_FMT(msg, rc)
 

Typedefs

typedef uint32_t rc_t
 

Macro Definition Documentation

◆ CHECK_VDB_TIMEOUT

#define CHECK_VDB_TIMEOUT (   msg,
  rc 
)
Value:
do { \
if ( rc && CSraException::IsTimeout(rc) ) \
NCBI_THROW2(CSraException, eTimeout, msg, rc); \
} while (0)
static bool IsTimeout(rc_t rc)
Definition: sraread.cpp:225
static SLJIT_INLINE sljit_ins msg(sljit_gpr r, sljit_s32 d, sljit_gpr x, sljit_gpr b)

Definition at line 181 of file exception.hpp.

◆ CHECK_VDB_TIMEOUT_FMT

#define CHECK_VDB_TIMEOUT_FMT (   msg,
  rc 
)
Value:
do { \
if ( rc && CSraException::IsTimeout(rc) ) \
NCBI_THROW2_FMT(CSraException, eTimeout, msg, rc); \
} while (0)

Definition at line 186 of file exception.hpp.

◆ NCBI_EXCEPTION3

#define NCBI_EXCEPTION3 (   exc_cls,
  err_code,
  msg,
  extra1,
  extra2 
)
Value:
exc_cls, err_code, msg, extra1, extra2)
#define NCBI_EXCEPTION_EMPTY_NAME
Definition: ncbiexpt.hpp:691
#define NCBI_EXCEPTION3_VAR(name, exc_cls, err_code, msg, extra1, extra2)
Create an instance of the exception with one additional parameter.
Definition: exception.hpp:53

Definition at line 59 of file exception.hpp.

◆ NCBI_EXCEPTION3_VAR

#define NCBI_EXCEPTION3_VAR (   name,
  exc_cls,
  err_code,
  msg,
  extra1,
  extra2 
)
Value:
exc_cls name(DIAG_COMPILE_INFO, 0, exc_cls::err_code, msg, \
extra1, extra2)
#define DIAG_COMPILE_INFO
Make compile time diagnostic information object to use in CNcbiDiag and CException.
Definition: ncbidiag.hpp:170

Create an instance of the exception with one additional parameter.

Definition at line 53 of file exception.hpp.

◆ NCBI_RETHROW3

#define NCBI_RETHROW3 (   prev_exc,
  exc_cls,
  err_code,
  msg,
  extra1,
  extra2 
)
Value:
throw exc_cls(DIAG_COMPILE_INFO, &(prev_exc), exc_cls::err_code, msg, \
extra1, extra2)

Definition at line 70 of file exception.hpp.

◆ NCBI_THROW2_FMT

#define NCBI_THROW2_FMT (   exception_class,
  err_code,
  message,
  extra 
)     throw NCBI_EXCEPTION2(exception_class, err_code, FORMAT(message), extra)

Definition at line 176 of file exception.hpp.

◆ NCBI_THROW3

#define NCBI_THROW3 (   exc_cls,
  err_code,
  msg,
  extra1,
  extra2 
)     throw NCBI_EXCEPTION3(exc_cls, err_code, msg, extra1, extra2)

Definition at line 65 of file exception.hpp.

Typedef Documentation

◆ rc_t

typedef uint32_t rc_t

Definition at line 39 of file exception.hpp.

Modified on Fri Sep 20 14:57:24 2024 by modify_doxy.py rev. 669887