mirror of
https://github.com/ksherlock/mpw-shell.git
synced 2025-01-08 04:29:34 +00:00
17 lines
394 B
C++
17 lines
394 B
C++
#ifndef __mpw_error_h__
|
|
#define __mpw_error_h__
|
|
|
|
#include <stdexcept>
|
|
#include <system_error>
|
|
|
|
class execution_of_input_terminated : public std::runtime_error {
|
|
public:
|
|
execution_of_input_terminated(int status) :
|
|
std::runtime_error("MPW Shell - Execution of input Terminated."), _status(status)
|
|
{}
|
|
constexpr int status() const noexcept { return _status; }
|
|
private:
|
|
int _status;
|
|
};
|
|
|
|
#endif |