synfig-core
1.0.3
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
src
tool
synfigtoolexception.h
Go to the documentation of this file.
1
/* === S Y N F I G ========================================================= */
21
/* ========================================================================= */
22
23
#include <exception>
24
25
class
SynfigToolException
:
public
std::exception
26
{
27
public
:
28
SynfigToolException
(
exit_code
code,
std::string
msg =
""
)
29
: _code(code), _msg(msg)
30
{ }
31
exit_code
get_exit_code
()
const
{
return
_code; }
32
std::string
get_message
()
const
{
return
_msg; }
33
34
virtual
const
char
*
what
()
const
throw() {
return
_msg.c_str(); }
35
virtual
~SynfigToolException
() throw() {}
36
private
:
37
exit_code
_code;
38
std::string
_msg;
39
};
Generated on Mon Nov 16 2015 15:33:51 for synfig-core by
1.8.1.2