sofs19  0.1
FUSE based file system
exception.h
Go to the documentation of this file.
1 
6 #ifndef __SOFS19_EXCEPTION__
7 #define __SOFS19_EXCEPTION__
8 
9 #include <exception>
10 
11 namespace sofs19
12 {
13 
24  class SOException:public std::exception
25  {
26  public:
27  int en;
28  const char *func;
29  char msg[100];
30 
36  SOException(int _en, const char *_func);
37 
42  const char *what() const throw();
43  };
44 
47 };
48 
49 #endif /* __SOFS19_EXCEPTION__ */
sofs19::SOException::msg
char msg[100]
buffer to store the exception message
Definition: exception.h:29
sofs19::SOException::SOException
SOException(int _en, const char *_func)
the constructor
sofs19::SOException::func
const char * func
name of function that has thrown the exception
Definition: exception.h:28
sofs19::SOException::what
const char * what() const
default exception message
sofs19::SOException::en
int en
(system) error number
Definition: exception.h:27
sofs19::SOException
The sofs19 exception class.
Definition: exception.h:24