evio  5.3
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
evio::evioException Class Reference

Basic evio exception class. More...

#include <evioException.hxx>

Inheritance diagram for evio::evioException:

Public Member Functions

 evioException (int typ=0, const std::string &txt="", const std::string &aux="")
 
 evioException (int typ, const std::string &txt, const std::string &file, const std::string &func, int line)
 
virtual ~evioException () noexcept
 
virtual std::string toString () const noexcept
 Returns XML string listing exception object contents. More...
 
virtual const char * what () const noexcept
 Returns char * listing exception object contents. More...
 

Public Attributes

int type
 Exception type. More...
 
std::string text
 Primary text. More...
 
std::string auxText
 Auxiliary text. More...
 
std::string trace
 Stack trace, not available on all platforms. More...
 

Detailed Description

Basic evio exception class.

Includes integer type and two text fields.

Constructor & Destructor Documentation

◆ evioException() [1/2]

evio::evioException::evioException ( int  typ = 0,
const std::string &  txt = "",
const std::string &  aux = "" 
)

◆ evioException() [2/2]

evio::evioException::evioException ( int  typ,
const std::string &  txt,
const std::string &  file,
const std::string &  func,
int  line 
)

◆ ~evioException()

virtual evio::evioException::~evioException ( )
inlinevirtualnoexcept

Member Function Documentation

◆ toString()

string evioException::toString ( ) const
virtualnoexcept

Returns XML string listing exception object contents.

Returns
XML string listing contents

References auxText, text, trace, and type.

Referenced by what().

◆ what()

const char * evioException::what ( ) const
virtualnoexcept

Returns char * listing exception object contents.

Returns
char * listing contents

References toString().

Member Data Documentation

◆ auxText

std::string evio::evioException::auxText

Auxiliary text.

Referenced by toString().

◆ text

std::string evio::evioException::text

Primary text.

Referenced by toString().

◆ trace

std::string evio::evioException::trace

Stack trace, not available on all platforms.

Referenced by toString().

◆ type

int evio::evioException::type

Exception type.

Referenced by toString().


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