File: SyscallException.h

package info (click to toggle)
moagg 0.18-6
  • links: PTS, VCS
  • area: main
  • in suites: lenny
  • size: 1,924 kB
  • ctags: 4,059
  • sloc: cpp: 23,814; sh: 2,652; makefile: 283
file content (24 lines) | stat: -rw-r--r-- 596 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#ifndef SYSCALLEXCEPTION_H
#define SYSCALLEXCEPTION_H

#include "Exception.h"

//----------------------------------------------------------------------------
class SyscallException : public Exception
{
  public:
    SyscallException(const char *message);
    SyscallException(const std::string &message);
    SyscallException(const char *message, int error);
    SyscallException(const std::string &message, int error);
    ~SyscallException();

    inline int getErrno() const { return m_errno; }

    std::string toString() const;

  protected:
    int m_errno;
};

#endif //SYSCALLEXCEPTION_H