GammaLib  1.7.0.dev
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
GException_numerics.cpp
Go to the documentation of this file.
1 /***************************************************************************
2  * GException_numerics.cpp - Numerics exceptions *
3  * ----------------------------------------------------------------------- *
4  * copyright (C) 2011 by Jurgen Knodlseder *
5  * ----------------------------------------------------------------------- *
6  * *
7  * This program is free software: you can redistribute it and/or modify *
8  * it under the terms of the GNU General Public License as published by *
9  * the Free Software Foundation, either version 3 of the License, or *
10  * (at your option) any later version. *
11  * *
12  * This program is distributed in the hope that it will be useful, *
13  * but WITHOUT ANY WARRANTY; without even the implied warranty of *
14  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
15  * GNU General Public License for more details. *
16  * *
17  * You should have received a copy of the GNU General Public License *
18  * along with this program. If not, see <http://www.gnu.org/licenses/>. *
19  * *
20  ***************************************************************************/
21 /**
22  * @file GException_numerics.cpp
23  * @brief Numerics exception class implementations
24  * @author J. Knodlseder
25  */
26 
27 /* __ Includes ___________________________________________________________ */
28 #ifdef HAVE_CONFIG_H
29 #include <config.h>
30 #endif
31 #include "GException.hpp"
32 #include "GTools.hpp"
33 
34 
35 /***********************************************************************//**
36  * @brief <Description>
37  *
38  * @param[in] origin Name of method that has thrown the exception.
39  * @param[in] message Optional error message.
40  ***************************************************************************/
41 /*
42 GException::exception::exception(std::string origin, std::string message)
43 {
44  // Set origin of exception
45  m_origin = origin;
46 
47  // Set exception message
48  m_message = "Exception. "+ message;
49 
50  // Return
51  return;
52 }
53 */
Gammalib tools definition.
Exception handler interface definition.