irods  4.2.8
About: iRODS (the integrated Rule Oriented Data System) is a distributed data-management system for creating data grids, digital libraries, persistent archives, and real-time data systems.
  Fossies Dox: irods-4.2.8.tar.gz  ("unofficial" and yet experimental doxygen-generated source code documentation)  

irods_exception.hpp File Reference
#include <exception>
#include <string>
#include <sstream>
#include <vector>
#include <inttypes.h>
#include <boost/format.hpp>
#include <irods_stacktrace.hpp>
Include dependency graph for irods_exception.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  irods::exception
 

Namespaces

 irods
 

Macros

#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()); }
 

Macro Definition Documentation

◆ 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()); }

Definition at line 72 of file irods_exception.hpp.

◆ 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() }

Definition at line 71 of file irods_exception.hpp.

◆ RE_THROW

#define RE_THROW (   _msg,
  _excp 
)    _excp.add_message( _msg ); throw _excp;

Definition at line 70 of file irods_exception.hpp.

◆ THROW

#define THROW (   _code,
  _msg 
)    ( throw irods::exception( _code, _msg, __FILE__, __LINE__, __PRETTY_FUNCTION__ ) )

Definition at line 69 of file irods_exception.hpp.