2016-02-02 21:19:13 +00:00
|
|
|
#ifndef __mpw_error_h__
|
|
|
|
#define __mpw_error_h__
|
|
|
|
|
|
|
|
#include <stdexcept>
|
|
|
|
#include <system_error>
|
|
|
|
|
|
|
|
class execution_of_input_terminated : public std::runtime_error {
|
|
|
|
public:
|
2016-02-05 18:19:20 +00:00
|
|
|
execution_of_input_terminated(int status = -9) :
|
2016-02-02 21:19:13 +00:00
|
|
|
std::runtime_error("MPW Shell - Execution of input Terminated."), _status(status)
|
|
|
|
{}
|
|
|
|
constexpr int status() const noexcept { return _status; }
|
|
|
|
private:
|
|
|
|
int _status;
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|