LArSoft  v07_13_02
Liquid Argon Software toolkit - http://larsoft.org/
pmtana::OpticalRecoException Class Reference

#include "OpticalRecoException.h"

Inheritance diagram for pmtana::OpticalRecoException:

Public Member Functions

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

Private Attributes

std::string _msg
 

Detailed Description

Definition at line 25 of file OpticalRecoException.h.

Constructor & Destructor Documentation

pmtana::OpticalRecoException::OpticalRecoException ( const std::string &  msg = "")

Definition at line 8 of file OpticalRecoException.cxx.

References _msg.

10  {
11  // print_stacktrace();
12  _msg = "\033[93m EXCEPTION \033[00m\033[95m";
13  _msg += msg;
14  _msg += "\033[00m\n";
15  }
cet::coded_exception< error, detail::translate > exception
Definition: exception.h:33
virtual pmtana::OpticalRecoException::~OpticalRecoException ( )
throw (
)
inlinevirtual

Definition at line 31 of file OpticalRecoException.h.

References what().

31 {};

Member Function Documentation

const char * pmtana::OpticalRecoException::what ( ) const
throw (
)
virtual

Definition at line 17 of file OpticalRecoException.cxx.

References _msg.

Referenced by ~OpticalRecoException().

18  { return _msg.c_str(); }

Member Data Documentation

std::string pmtana::OpticalRecoException::_msg
private

Definition at line 37 of file OpticalRecoException.h.

Referenced by OpticalRecoException(), and what().


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