Public Member Functions | Private Attributes | List of all members
util::UtilException Class Reference

#include <UtilException.h>

Inheritance diagram for util::UtilException:

Public Member Functions

 UtilException (std::string msg="")
 
virtual ~UtilException () throw ()
 
virtual const char * what () const throw ()
 

Private Attributes

std::string _msg
 

Detailed Description

Generic (base) exception class

Definition at line 25 of file UtilException.h.

Constructor & Destructor Documentation

util::UtilException::UtilException ( std::string  msg = "")
inline

Definition at line 29 of file UtilException.h.

29  : std::exception()
30  {
31  _msg = "\033[93m";
32  _msg += msg;
33  _msg += "\033[00m";
34  }
void msg(const char *fmt,...)
Definition: message.cpp:107
cet::coded_exception< error, detail::translate > exception
Definition: exception.h:33
virtual util::UtilException::~UtilException ( )
throw (
)
inlinevirtual

Definition at line 36 of file UtilException.h.

36 {};

Member Function Documentation

virtual const char* util::UtilException::what ( void  ) const
throw (
)
inlinevirtual

Definition at line 37 of file UtilException.h.

38  { return _msg.c_str(); }

Member Data Documentation

std::string util::UtilException::_msg
private

Definition at line 42 of file UtilException.h.


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