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 Class Reference

#include <irods_exception.hpp>

Inheritance diagram for irods::exception:
[legend]
Collaboration diagram for irods::exception:
[legend]

Public Member Functions

 exception (const int64_t _code, const std::string &_message, const std::string &_file_name, const uint32_t _line_number, const std::string &_function_name)
 
 exception (const int64_t _code, const boost::format &_message, const std::string &_file_name, const uint32_t _line_number, const std::string &_function_name)
 
 exception (const exception &)
 
virtual ~exception () throw ()
 
virtual const char * what () const throw ()
 
virtual const char * client_display_what () const throw ()
 
int64_t code () const
 
std::vector< std::string > message_stack () const
 
std::string file_name () const
 
uint32_t line_number () const
 
std::string function_name () const
 
irods::stacktrace stacktrace () const
 
void add_message (const std::string &_m)
 

Private Member Functions

void assemble_full_display_what () const throw ()
 
void assemble_client_display_what () const throw ()
 

Private Attributes

int64_t code_
 
std::vector< std::string > message_stack_
 
uint32_t line_number_
 
std::string function_name_
 
std::string file_name_
 
irods::stacktrace stacktrace_
 
std::string what_
 

Detailed Description

Definition at line 15 of file irods_exception.hpp.

Constructor & Destructor Documentation

◆ exception() [1/3]

irods::exception::exception ( const int64_t  _code,
const std::string &  _message,
const std::string &  _file_name,
const uint32_t  _line_number,
const std::string &  _function_name 
)

Definition at line 7 of file irods_exception.cpp.

References file_name_, function_name_, and message_stack_.

◆ exception() [2/3]

irods::exception::exception ( const int64_t  _code,
const boost::format &  _message,
const std::string &  _file_name,
const uint32_t  _line_number,
const std::string &  _function_name 
)

Definition at line 23 of file irods_exception.cpp.

◆ exception() [3/3]

irods::exception::exception ( const exception _rhs)

Definition at line 31 of file irods_exception.cpp.

◆ ~exception()

irods::exception::~exception ( )
throw (
)
virtual

Definition at line 41 of file irods_exception.cpp.

Member Function Documentation

◆ add_message()

void irods::exception::add_message ( const std::string &  _m)
inline

Definition at line 47 of file irods_exception.hpp.

References message_stack_.

◆ assemble_client_display_what()

void irods::exception::assemble_client_display_what ( ) const
throw (
)
private

Definition at line 83 of file irods_exception.cpp.

References code_, message_stack_, NULL, and what_.

Referenced by client_display_what().

◆ assemble_full_display_what()

void irods::exception::assemble_full_display_what ( ) const
throw (
)
private

Definition at line 59 of file irods_exception.cpp.

References code_, irods::stacktrace::dump(), file_name_, function_name_, line_number_, message_stack_, NULL, rodsErrorName(), stacktrace_, and what_.

Referenced by what().

Here is the call graph for this function:

◆ client_display_what()

const char * irods::exception::client_display_what ( ) const
throw (
)
virtual

Definition at line 52 of file irods_exception.cpp.

References assemble_client_display_what(), and what_.

Referenced by irods::check_directories_for_loops(), getDirSizeForProgStat(), isPathSymlink_err(), putDirUtil(), putUtil(), rsyncDirToCollUtil(), and rsyncUtil().

Here is the call graph for this function:

◆ code()

int64_t irods::exception::code ( ) const
inline

Definition at line 39 of file irods_exception.hpp.

References code_.

Referenced by isPathSymlink_err(), rsRegReplica(), and serverMain().

◆ file_name()

std::string irods::exception::file_name ( ) const
inline

Definition at line 41 of file irods_exception.hpp.

References file_name_.

◆ function_name()

std::string irods::exception::function_name ( ) const
inline

Definition at line 43 of file irods_exception.hpp.

References function_name_.

◆ line_number()

uint32_t irods::exception::line_number ( ) const
inline

Definition at line 42 of file irods_exception.hpp.

References line_number_.

◆ message_stack()

std::vector< std::string > irods::exception::message_stack ( ) const
inline

Definition at line 40 of file irods_exception.hpp.

References message_stack_.

◆ stacktrace()

irods::stacktrace irods::exception::stacktrace ( ) const
inline

Definition at line 44 of file irods_exception.hpp.

References stacktrace_.

◆ what()

const char * irods::exception::what ( ) const
throw (
)
virtual

Definition at line 46 of file irods_exception.cpp.

References assemble_full_display_what(), and what_.

Referenced by serverMain().

Here is the call graph for this function:

Member Data Documentation

◆ code_

int64_t irods::exception::code_
private

◆ file_name_

std::string irods::exception::file_name_
private

Definition at line 59 of file irods_exception.hpp.

Referenced by assemble_full_display_what(), exception(), and file_name().

◆ function_name_

std::string irods::exception::function_name_
private

Definition at line 58 of file irods_exception.hpp.

Referenced by assemble_full_display_what(), exception(), and function_name().

◆ line_number_

uint32_t irods::exception::line_number_
private

Definition at line 57 of file irods_exception.hpp.

Referenced by assemble_full_display_what(), and line_number().

◆ message_stack_

std::vector< std::string > irods::exception::message_stack_
private

◆ stacktrace_

irods::stacktrace irods::exception::stacktrace_
private

Definition at line 60 of file irods_exception.hpp.

Referenced by assemble_full_display_what(), and stacktrace().

◆ what_

std::string irods::exception::what_
mutableprivate

The documentation for this class was generated from the following files: