@@ -112,6 +112,7 @@ function Base.showerror(io::IO, e::CommonKwargError)
112
112
print (io, " Unrecognized keyword arguments: " )
113
113
printstyled (io, unrecognized; bold = true , color = :red )
114
114
print (io, " \n\n " )
115
+ println (io, TruncatedStacktraces. VERBOSE_MSG)
115
116
end
116
117
117
118
@enum KeywordArgError KeywordArgWarn KeywordArgSilent
@@ -137,6 +138,7 @@ struct IncompatibleInitialConditionError <: Exception end
137
138
138
139
function Base. showerror (io:: IO , e:: IncompatibleInitialConditionError )
139
140
print (io, INCOMPATIBLE_U0_MESSAGE)
141
+ println (io, TruncatedStacktraces. VERBOSE_MSG)
140
142
end
141
143
142
144
const NO_DEFAULT_ALGORITHM_MESSAGE = """
@@ -153,6 +155,7 @@ struct NoDefaultAlgorithmError <: Exception end
153
155
154
156
function Base. showerror (io:: IO , e:: NoDefaultAlgorithmError )
155
157
print (io, NO_DEFAULT_ALGORITHM_MESSAGE)
158
+ println (io, TruncatedStacktraces. VERBOSE_MSG)
156
159
end
157
160
158
161
const NO_TSPAN_MESSAGE = """
@@ -163,6 +166,7 @@ struct NoTspanError <: Exception end
163
166
164
167
function Base. showerror (io:: IO , e:: NoTspanError )
165
168
print (io, NO_TSPAN_MESSAGE)
169
+ println (io, TruncatedStacktraces. VERBOSE_MSG)
166
170
end
167
171
168
172
const NON_SOLVER_MESSAGE = """
@@ -180,6 +184,7 @@ struct NonSolverError <: Exception end
180
184
181
185
function Base. showerror (io:: IO , e:: NonSolverError )
182
186
print (io, NON_SOLVER_MESSAGE)
187
+ println (io, TruncatedStacktraces. VERBOSE_MSG)
183
188
end
184
189
185
190
const PROBSOLVER_PAIRING_MESSAGE = """
@@ -200,6 +205,7 @@ function Base.showerror(io::IO, e::ProblemSolverPairingError)
200
205
println (io, " Solver type: $(SciMLBase. __parameterless_type (typeof (e. alg))) " )
201
206
println (io,
202
207
" Problem types compatible with the chosen solver: $(compatible_problem_types (e. prob,e. alg)) " )
208
+ println (io, TruncatedStacktraces. VERBOSE_MSG)
203
209
end
204
210
205
211
function compatible_problem_types (prob, alg)
@@ -240,6 +246,7 @@ struct DirectAutodiffError <: Exception end
240
246
241
247
function Base. showerror (io:: IO , e:: DirectAutodiffError )
242
248
println (io, DIRECT_AUTODIFF_INCOMPATABILITY_MESSAGE)
249
+ println (io, TruncatedStacktraces. VERBOSE_MSG)
243
250
end
244
251
245
252
const NONCONCRETE_ELTYPE_MESSAGE = """
273
280
function Base. showerror (io:: IO , e:: NonConcreteEltypeError )
274
281
print (io, NONCONCRETE_ELTYPE_MESSAGE)
275
282
print (io, e. eltype)
283
+ println (io, TruncatedStacktraces. VERBOSE_MSG)
276
284
end
277
285
278
286
const GENERIC_NUMBER_TYPE_ERROR_MESSAGE = """
@@ -298,6 +306,7 @@ function Base.showerror(io::IO, e::GenericNumberTypeError)
298
306
println (io, " Solver: $(e. alg) " )
299
307
println (io, " u0 type: $(e. uType) " )
300
308
print (io, " Timespan type: $(e. tType) " )
309
+ println (io, TruncatedStacktraces. VERBOSE_MSG)
301
310
end
302
311
303
312
const COMPLEX_SUPPORT_ERROR_MESSAGE = """
316
325
function Base. showerror (io:: IO , e:: ComplexSupportError )
317
326
println (io, COMPLEX_SUPPORT_ERROR_MESSAGE)
318
327
println (io, " Solver: $(e. alg) " )
328
+ println (io, TruncatedStacktraces. VERBOSE_MSG)
319
329
end
320
330
321
331
const COMPLEX_TSPAN_ERROR_MESSAGE = """
@@ -330,6 +340,7 @@ struct ComplexTspanError <: Exception end
330
340
331
341
function Base. showerror (io:: IO , e:: ComplexTspanError )
332
342
println (io, COMPLEX_TSPAN_ERROR_MESSAGE)
343
+ println (io, TruncatedStacktraces. VERBOSE_MSG)
333
344
end
334
345
335
346
const TUPLE_STATE_ERROR_MESSAGE = """
@@ -367,6 +378,7 @@ struct TupleStateError <: Exception end
367
378
368
379
function Base. showerror (io:: IO , e:: TupleStateError )
369
380
println (io, TUPLE_STATE_ERROR_MESSAGE)
381
+ println (io, TruncatedStacktraces. VERBOSE_MSG)
370
382
end
371
383
372
384
const MASS_MATRIX_ERROR_MESSAGE = """
@@ -387,6 +399,7 @@ function Base.showerror(io::IO, e::IncompatibleMassMatrixError)
387
399
println (io, e. sz)
388
400
print (io, " length(u0): " )
389
401
println (e. len)
402
+ println (io, TruncatedStacktraces. VERBOSE_MSG)
390
403
end
391
404
392
405
function init_call (_prob, args... ; merge_callbacks = true , kwargshandle = KeywordArgWarn,
@@ -1386,6 +1399,7 @@ struct AdjointNotFoundError <: Exception end
1386
1399
1387
1400
function Base. showerror (io:: IO , e:: AdjointNotFoundError )
1388
1401
print (io, ADJOINT_NOT_FOUND_MESSAGE)
1402
+ println (io, TruncatedStacktraces. VERBOSE_MSG)
1389
1403
end
1390
1404
1391
1405
function _concrete_solve_adjoint (args... ; kwargs... )
@@ -1402,6 +1416,7 @@ struct ForwardSensitivityNotFoundError <: Exception end
1402
1416
1403
1417
function Base. showerror (io:: IO , e:: ForwardSensitivityNotFoundError )
1404
1418
print (io, FORWARD_SENSITIVITY_NOT_FOUND_MESSAGE)
1419
+ println (io, TruncatedStacktraces. VERBOSE_MSG)
1405
1420
end
1406
1421
1407
1422
function _concrete_solve_forward (args... ; kwargs... )
0 commit comments