LArSoft  v09_90_00
Liquid Argon Software toolkit - https://larsoft.org/
pmtana::OpticalRecoException Class Reference

#include "OpticalRecoException.h"

Inheritance diagram for pmtana::OpticalRecoException:

Public Member Functions

 OpticalRecoException (const std::string &msg="")
 
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 5 of file OpticalRecoException.cxx.

References _msg.

6  {
7  // print_stacktrace();
8  _msg = "\033[93m EXCEPTION \033[00m\033[95m";
9  _msg += msg;
10  _msg += "\033[00m\n";
11  }
cet::coded_exception< error, detail::translate > exception
Definition: exception.h:33

Member Function Documentation

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

Definition at line 13 of file OpticalRecoException.cxx.

References _msg.

14  {
15  return _msg.c_str();
16  }

Member Data Documentation

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

Definition at line 33 of file OpticalRecoException.h.

Referenced by OpticalRecoException(), and what().


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