1 // gensyscalls_common.h
3 #ifndef _GEN_SYSCALLS_COMMON_H
4 #define _GEN_SYSCALLS_COMMON_H
12 struct Exception
: exception
{
18 Exception(const string
&message
)
23 virtual ~Exception() throw() {}
25 virtual const char *what() const throw()
27 return fMessage
.c_str();
35 struct EOFException
: public Exception
{
37 EOFException(const string
&message
) : Exception(message
) {}
38 virtual ~EOFException() throw() {}
42 struct IOException
: public Exception
{
44 IOException(const string
&message
) : Exception(message
) {}
45 virtual ~IOException() throw() {}
49 struct ParseException
: public Exception
{
51 ParseException(const string
&message
) : Exception(message
) {}
52 virtual ~ParseException() throw() {}
55 #endif // _GEN_SYSCALLS_COMMON_H