Mercurial > octave-nkf
comparison src/DLD-FUNCTIONS/urlwrite.cc @ 7481:78f3811155f7
use exceptions in liboctave error handler
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Thu, 14 Feb 2008 17:14:23 -0500 |
parents | 120f3135952f |
children | 3725f819b5b3 |
comparison
equal
deleted
inserted
replaced
7480:93826ba0d078 | 7481:78f3811155f7 |
---|---|
165 // Is there a better error code to use? Maybe it doesn't matter | 165 // Is there a better error code to use? Maybe it doesn't matter |
166 // because we are about to throw an execption. | 166 // because we are about to throw an execption. |
167 | 167 |
168 res = CURLE_ABORTED_BY_CALLBACK; | 168 res = CURLE_ABORTED_BY_CALLBACK; |
169 urlget_cleanup (curl); | 169 urlget_cleanup (curl); |
170 octave_throw_interrupt_exception (); | 170 octave_rethrow_exception (); |
171 | 171 |
172 BEGIN_INTERRUPT_IMMEDIATELY_IN_FOREIGN_CODE_2; | 172 BEGIN_INTERRUPT_IMMEDIATELY_IN_FOREIGN_CODE_2; |
173 | 173 |
174 res = curl_easy_perform (curl); | 174 res = curl_easy_perform (curl); |
175 | 175 |