Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
srcs
larcorealg
larcorealg
GeoAlgo
larcorealg/larcorealg/GeoAlgo/GeoAlgoException.h
Go to the documentation of this file.
1
/**
2
* \file GeoAlgoException.h
3
*
4
* \ingroup GeoAlgo
5
*
6
* \brief Class def header for a class GeoAlgoException
7
*
8
* @author kazu
9
*/
10
11
/** \addtogroup GeoAlgo
12
13
@{*/
14
#ifndef BASICTOOL_GEOALGOEXCEPTION_H
15
#define BASICTOOL_GEOALGOEXCEPTION_H
16
17
#include <iostream>
18
#include <exception>
19
20
namespace
geoalgo {
21
/**
22
\class GeoAlgoException
23
User defined class GeoAlgoException ... these comments are used to generate
24
doxygen documentation!
25
*/
26
27
class
GeoAlgoException
:
public
std::exception{
28
29
public
:
30
31
GeoAlgoException
(std::string
msg
=
""
) :
std
::exception()
32
{
33
_msg
=
"\n\033[93m<<EXCEPTION>>\033[00m\033[95m "
;
34
_msg
+=
msg
;
35
_msg
+=
"\033[00m\n"
;
36
}
37
38
virtual
~GeoAlgoException
() throw(){};
39
virtual
const
char
*
what
()
const
throw()
40
{
return
_msg
.c_str(); }
41
42
private
:
43
44
std::string
_msg
;
45
};
46
47
}
48
49
#endif
50
/** @} */
// end of doxygen group
51
pmtana::std
double std(const std::vector< short > &wf, const double ped_mean, size_t start, size_t nsample)
Definition:
UtilFunc.cxx:42
geoalgo::GeoAlgoException::_msg
std::string _msg
Definition:
larcorealg/larcorealg/GeoAlgo/GeoAlgoException.h:44
geoalgo::GeoAlgoException::~GeoAlgoException
virtual ~GeoAlgoException()
Definition:
larcorealg/larcorealg/GeoAlgo/GeoAlgoException.h:38
geoalgo::GeoAlgoException::what
virtual const char * what() const
Definition:
larcorealg/larcorealg/GeoAlgo/GeoAlgoException.h:39
example_anaunit.msg
string msg
Definition:
Algorithms/mac/example_anaunit.py:4
geoalgo::GeoAlgoException::GeoAlgoException
GeoAlgoException(std::string msg="")
Definition:
larcorealg/larcorealg/GeoAlgo/GeoAlgoException.h:31
geoalgo::GeoAlgoException
Definition:
larcorealg/larcorealg/GeoAlgo/GeoAlgoException.h:27
Generated by
1.8.5