Stellarium  0.90.0
gException.hpp
1 /***************************************************************************
2  * Copyright (C) 2006 by j. l. Canales *
3  * jlcanales@users.sourceforge.net *
4  * *
5  * This program is free software; you can redistribute it and/or modify *
6  * it under the terms of the GNU General Public License as published by *
7  * the Free Software Foundation; either version 2 of the License, or *
8  * (at your option) any later version. *
9  * *
10  * This program is distributed in the hope that it will be useful, *
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of *
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
13  * GNU General Public License for more details. *
14  * *
15  * You should have received a copy of the GNU General Public License *
16  * along with this program; if not, write to the *
17  * Free Software Foundation, Inc., *
18  * 51 Franklin Street, Suite 500, Boston, MA 02110-1335, USA. *
19  ***************************************************************************/
20 
21 #ifndef _GEXCEPTION_HPP_
22 #define _GEXCEPTION_HPP_ 1
23 
24 #include <stdexcept>
25 
26 //Exception Codes
27 #define EXCP_UNKNOWN 1
28 #define EXCP_INCORRECTPARAM 2
29 #define EXCP_OPERATIONOVERFLOW 3
30 #define EXCP_MEMORYALLOCATION 4
31 #define EXCP_COMPUTEOVERFLOW 5
32 
33 typedef unsigned int GEXCEPTIONTYPE;
34 
35 // Exception messages for GMatrix
36 
37 #define OPERATOR_X_INCOMPATIBLE_ORDER "The matrix have incompatible order to calculate its verctorial product"
38 #define OPERATOR_ADD_INCOMPATIBLE_ORDER "The matrix have incompatible order to calculate the addition"
39 #define OPERATOR_ADDEQUAL_INCOMPATIBLE_ORDER "The matrix have incompatible order to calculate the addition"
40 #define OPERATOR_DIFF_INCOMPATIBLE_ORDER "The matrix have incompatible order to calculate the substraction"
41 #define OPERATOR_DIFFEQUAL_INCOMPATIBLE_ORDER "The matrix have incompatible order to calculate the substraction"
42 #define DET_INCOMPATIBLE_ORDER "The matrix is not square, the determinant can't be calculate."
43 
44 #endif // _GEXCEPTION_HPP_