comparison libinterp/corefcn/dassl.cc @ 20755:200ae1d650b7

propagate octave_execution_exception objects through try/catch blocks * gripes.h, gripes.cc (gripe_user_supplied_eval, gripe_wrong_type_arg): New overloaded functions that accept octave_execution_exception objects. * error.h, error.cc (error, verror, error_1, usage_1, debug_or_throw_exception): New overloaded functions that accept * octave_execution_exception objects. * __qp__.cc, cellfun.cc, daspk.cc, dasrt.cc, dassl.cc, data.cc, file-io.cc, graphics.cc, graphics.in.h, input.cc, load-path.cc, ls-mat-ascii.cc, lsode.cc, mex.cc, oct-handle.h, oct-map.cc, oct-stream.cc, quad.cc, rand.cc, toplev.cc, utils.cc, variables.cc, __eigs__.cc, ov-base.cc, ov-class.cc, ov-fcn-handle.cc, ov-oncleanup.cc, ov.cc, octave.cc, oct-parse.in.yy: Propagate octave_execution_exception objects through try/catch blocks.
author John W. Eaton <jwe@octave.org>
date Wed, 25 Nov 2015 15:27:48 -0500
parents 7164a69472dd
children b6f2909e7f94
comparison
equal deleted inserted replaced
20754:46b15c018fa5 20755:200ae1d650b7
77 77
78 try 78 try
79 { 79 {
80 tmp = dassl_fcn->do_multi_index_op (1, args); 80 tmp = dassl_fcn->do_multi_index_op (1, args);
81 } 81 }
82 catch (const octave_execution_exception&) 82 catch (const octave_execution_exception& e)
83 { 83 {
84 gripe_user_supplied_eval ("dassl"); 84 gripe_user_supplied_eval (e, "dassl");
85 throw;
86 } 85 }
87 86
88 int tlen = tmp.length (); 87 int tlen = tmp.length ();
89 if (tlen > 0 && tmp(0).is_defined ()) 88 if (tlen > 0 && tmp(0).is_defined ())
90 { 89 {
130 129
131 try 130 try
132 { 131 {
133 tmp = dassl_jac->do_multi_index_op (1, args); 132 tmp = dassl_jac->do_multi_index_op (1, args);
134 } 133 }
135 catch (const octave_execution_exception&) 134 catch (const octave_execution_exception& e)
136 { 135 {
137 gripe_user_supplied_eval ("dassl"); 136 gripe_user_supplied_eval (e, "dassl");
138 throw;
139 } 137 }
140 138
141 int tlen = tmp.length (); 139 int tlen = tmp.length ();
142 if (tlen > 0 && tmp(0).is_defined ()) 140 if (tlen > 0 && tmp(0).is_defined ())
143 { 141 {