File: SystemCallException.hpp

package info (click to toggle)
xrdp 0.10.5-1
  • links: PTS, VCS
  • area: main
  • in suites: experimental
  • size: 15,088 kB
  • sloc: ansic: 107,426; sh: 5,852; asm: 4,742; cpp: 2,555; makefile: 1,474
file content (35 lines) | stat: -rw-r--r-- 638 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
//
// Created by cheesekun on 2/28/22.
//

#ifndef ULALACA_SYSTEMCALLEXCEPTION_HPP
#define ULALACA_SYSTEMCALLEXCEPTION_HPP

#include <string>
#include <exception>


class SystemCallException: public std::exception {
public:
    explicit SystemCallException(
            int _errno,
            std::string funcName
    );
    ~SystemCallException() override = default;

    int getErrno() const;
    const std::string &getMessage() const;

    const char* what() const noexcept override;

private:
    int _errno;
    std::string _message;

    std::string _funcName;

    std::string _what;
};


#endif //ULALACA_SYSTEMCALLEXCEPTION_HPP