All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
OpT0FinderException.cxx
Go to the documentation of this file.
1 #ifndef OPT0FINDER_EREXCEPTION_CXX
2 #define OPT0FINDER_EREXCEPTION_CXX
3 
4 #include "OpT0FinderException.h"
5 
6 namespace flashmatch {
7 
9  : std::exception()
10  {
11  _msg = "\033[93m EXCEPTION \033[00m\033[95m";
12  _msg += msg;
13  _msg += "\033[00m\n";
14  }
15 
16  const char* OpT0FinderException::what() const throw()
17  { return _msg.c_str(); }
18 
19 }
20 #endif
double std(const std::vector< short > &wf, const double ped_mean, size_t start, size_t nsample)
Definition: UtilFunc.cxx:42
OpT0FinderException(const std::string &msg="")
Default ctor w/ error message input (optional)
std::string _msg
Error message.
virtual const char * what() const
Class def header for exception classes in OpT0Finder package.