aboutsummaryrefslogtreecommitdiff
path: root/butl/process
diff options
context:
space:
mode:
authorKaren Arutyunov <karen@codesynthesis.com>2017-03-22 00:36:27 +0300
committerKaren Arutyunov <karen@codesynthesis.com>2017-03-22 00:36:27 +0300
commit615d333787c1d8dc08df5e30c60ec20600a74b85 (patch)
treec1eccc15aa77b8d300f275d2aef169452a3db628 /butl/process
parent5a2fba169fc1bc3587d7d9b351d5c46a74f8f7b8 (diff)
Implement throw_generic_error() and throw_system_error()
Diffstat (limited to 'butl/process')
-rw-r--r--butl/process9
1 files changed, 5 insertions, 4 deletions
diff --git a/butl/process b/butl/process
index 19bea3a..31cb681 100644
--- a/butl/process
+++ b/butl/process
@@ -30,13 +30,14 @@ namespace butl
#ifndef _WIN32
process_error (int e, bool child)
- : system_error (e, std::system_category ()), child_ (child) {}
+ : system_error (e, std::generic_category ()), child_ (child) {}
#else
process_error (int e, bool child = false)
- : system_error (e, std::system_category ()), child_ (child) {}
+ : system_error (e, std::generic_category ()), child_ (child) {}
- process_error (const std::string& d, int e = ECHILD)
- : system_error (e, std::system_category (), d), child_ (false) {}
+ process_error (const std::string& d, int fallback_errno_code = 0)
+ : system_error (fallback_errno_code, std::system_category (), d),
+ child_ (false) {}
#endif
private: