@@ -132,7 +132,7 @@ piped_processt::piped_processt(const std::vector<std::string> commandvec)
132
132
&sec_attr); // For inheritance by child
133
133
if (child_std_IN_Rd == INVALID_HANDLE_VALUE)
134
134
{
135
- throw std::runtime_error (" Input pipe creation failed for child_std_IN_Rd" );
135
+ throw system_exceptiont (" Input pipe creation failed for child_std_IN_Rd" );
136
136
}
137
137
// Connect to the other side of the pipe
138
138
child_std_IN_Wr = CreateFileA (
@@ -145,11 +145,11 @@ piped_processt::piped_processt(const std::vector<std::string> commandvec)
145
145
NULL );
146
146
if (child_std_IN_Wr == INVALID_HANDLE_VALUE)
147
147
{
148
- throw std::runtime_error (" Input pipe creation failed for child_std_IN_Wr" );
148
+ throw system_exceptiont (" Input pipe creation failed for child_std_IN_Wr" );
149
149
}
150
150
if (!SetHandleInformation (child_std_IN_Rd, HANDLE_FLAG_INHERIT, 0 ))
151
151
{
152
- throw std::runtime_error (
152
+ throw system_exceptiont (
153
153
" Input pipe creation failed on SetHandleInformation" );
154
154
}
155
155
const std::string out_name = base_name + " \\ OUT" ;
@@ -164,8 +164,7 @@ piped_processt::piped_processt(const std::vector<std::string> commandvec)
164
164
&sec_attr); // For inheritance by child
165
165
if (child_std_OUT_Rd == INVALID_HANDLE_VALUE)
166
166
{
167
- throw std::runtime_error (
168
- " Output pipe creation failed for child_std_OUT_Rd" );
167
+ throw system_exceptiont (" Output pipe creation failed for child_std_OUT_Rd" );
169
168
}
170
169
child_std_OUT_Wr = CreateFileA (
171
170
out_name.c_str (),
@@ -177,12 +176,11 @@ piped_processt::piped_processt(const std::vector<std::string> commandvec)
177
176
NULL );
178
177
if (child_std_OUT_Wr == INVALID_HANDLE_VALUE)
179
178
{
180
- throw std::runtime_error (
181
- " Output pipe creation failed for child_std_OUT_Wr" );
179
+ throw system_exceptiont (" Output pipe creation failed for child_std_OUT_Wr" );
182
180
}
183
181
if (!SetHandleInformation (child_std_OUT_Rd, HANDLE_FLAG_INHERIT, 0 ))
184
182
{
185
- throw std::runtime_error (
183
+ throw system_exceptiont (
186
184
" Output pipe creation failed on SetHandleInformation" );
187
185
}
188
186
// Create the child process
0 commit comments