#include <exception>
#include <string>
#include <sstream>
#include <vector>
#include <inttypes.h>
#include <boost/format.hpp>
#include <irods_stacktrace.hpp>
Go to the source code of this file.
|
#define | THROW(_code, _msg) ( throw irods::exception( _code, _msg, __FILE__, __LINE__, __PRETTY_FUNCTION__ ) ) |
|
#define | RE_THROW(_msg, _excp) _excp.add_message( _msg ); throw _excp; |
|
#define | CATCH_EXC_AND_RETURN(throwing_expression) try { throwing_expression; } catch (const irods::exception& e) { rodsLog( LOG_ERROR, e.code(), "%s encountered an exception on line %d in file %s:\n%s", __PRETTY_FUNCTION__, __LINE__, __FILE__, e.what()); return e.code() } |
|
#define | CATCH_EXC_AND_LOG(throwing_expression) try { throwing_expression; } catch (const irods::exception& e) { rodsLog( LOG_ERROR, e.code(), "%s encountered an exception on line %d in file %s:\n%s", __PRETTY_FUNCTION__, __LINE__, __FILE__, e.what()); } |
|
◆ CATCH_EXC_AND_LOG
#define CATCH_EXC_AND_LOG |
( |
|
throwing_expression | ) |
try { throwing_expression; } catch (const irods::exception& e) { rodsLog( LOG_ERROR, e.code(), "%s encountered an exception on line %d in file %s:\n%s", __PRETTY_FUNCTION__, __LINE__, __FILE__, e.what()); } |
◆ CATCH_EXC_AND_RETURN
#define CATCH_EXC_AND_RETURN |
( |
|
throwing_expression | ) |
try { throwing_expression; } catch (const irods::exception& e) { rodsLog( LOG_ERROR, e.code(), "%s encountered an exception on line %d in file %s:\n%s", __PRETTY_FUNCTION__, __LINE__, __FILE__, e.what()); return e.code() } |
◆ RE_THROW
#define RE_THROW |
( |
|
_msg, |
|
|
|
_excp |
|
) |
| _excp.add_message( _msg ); throw _excp; |
◆ THROW
#define THROW |
( |
|
_code, |
|
|
|
_msg |
|
) |
| ( throw irods::exception( _code, _msg, __FILE__, __LINE__, __PRETTY_FUNCTION__ ) ) |