| 84 | } |
| 85 | |
| 86 | class TSystemError: public yexception { |
| 87 | public: |
| 88 | TSystemError(int status) |
| 89 | : Status_(status) |
| 90 | { |
| 91 | Init(); |
| 92 | } |
| 93 | |
| 94 | TSystemError() |
| 95 | : TSystemError(LastSystemError()) |
| 96 | { |
| 97 | } |
| 98 | |
| 99 | int Status() const noexcept { |
| 100 | return Status_; |
| 101 | } |
| 102 | |
| 103 | private: |
| 104 | void Init(); |
| 105 | |
| 106 | private: |
| 107 | int Status_; |
| 108 | }; |
| 109 | |
| 110 | class TIoException: public TSystemError { |
| 111 | }; |
no outgoing calls
no test coverage detected