Gyoto
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
include
GyotoError.h
Go to the documentation of this file.
1
23
/*
24
Copyright 2011 Thibaut Paumard
25
26
This file is part of Gyoto.
27
28
Gyoto is free software: you can redistribute it and/or modify
29
it under the terms of the GNU General Public License as published by
30
the Free Software Foundation, either version 3 of the License, or
31
(at your option) any later version.
32
33
Gyoto is distributed in the hope that it will be useful,
34
but WITHOUT ANY WARRANTY; without even the implied warranty of
35
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
36
GNU General Public License for more details.
37
38
You should have received a copy of the GNU General Public License
39
along with Gyoto. If not, see <http://www.gnu.org/licenses/>.
40
*/
41
42
#ifndef __GyotoError_H_
43
#define __GyotoError_H_
44
50
#include <string>
51
52
namespace
Gyoto {
53
class
Error;
54
}
55
66
class
Gyoto::Error
67
{
68
private
:
69
//const char* message; /*!< error message */
70
const
std::string
message
;
71
const
int
errcode;
72
public
:
73
78
//Error( const char* m );
79
Error
(
const
std::string m );
80
85
Error
(
const
int
errcode );
86
87
93
Error
(
const
char
* m ,
const
int
errcode );
94
98
void
Report
()
const
;
104
int
getErrcode
()
const
;
105
110
//char const * const get_message() const ;
111
std::string
get_message
()
const
;
112
};
113
114
typedef
void
GyotoErrorHandler_t (
const
char
*);
115
116
namespace
Gyoto {
117
void
setErrorHandler( GyotoErrorHandler_t* );
118
void
throwError( std::string );
119
}
120
121
#endif
Generated on Mon Mar 17 2014 06:33:53 for Gyoto by
1.8.1.2