Welcome to mirror list, hosted at ThFree Co, Russian Federation.

SystemCallException.hpp - github.com/neutrinolabs/ulalaca-xrdp.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 07280db16a1c95fdfa4f777d598870650c36dcf0 (plain)
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