| 230 | } |
| 231 | |
| 232 | void DuplexPipe::TransformError_(const boost::system::error_code& ec) |
| 233 | { |
| 234 | if (ec) { |
| 235 | if (ec == as::error::broken_pipe || ec.value() == 232/* Pipe is being closed */) { |
| 236 | throw Except<PipeBroken>(); |
| 237 | } |
| 238 | else if (ec.value() == 995) { |
| 239 | throw Except<PipeOperationCanceled>(); |
| 240 | } |
| 241 | else { |
| 242 | throw Except<PipeError>(ec.what()); |
| 243 | } |
| 244 | } |
| 245 | } |
| 246 | } |