Mercurial > octave
comparison libinterp/corefcn/error.h @ 18222:6ef8b920a7d6 gui-release
include stack in exception variable (bug #41117)
* error.h, error.cc (last_error_stack): New function.
* pt-eval.cc (tree_evaluator::visit_try_catch_command): Include stack
information in err variable.
author | Stefan Mahr <dac922@gmx.de> |
---|---|
date | Tue, 20 Aug 2013 18:57:48 +0200 |
parents | 175b392e91fe |
children | 4197fc428c7d |
comparison
equal
deleted
inserted
replaced
18219:7adbc822065a | 18222:6ef8b920a7d6 |
---|---|
24 #define octave_error_h 1 | 24 #define octave_error_h 1 |
25 | 25 |
26 #include <cstdarg> | 26 #include <cstdarg> |
27 #include <string> | 27 #include <string> |
28 | 28 |
29 class octave_map; | |
29 class octave_value_list; | 30 class octave_value_list; |
30 class unwind_protect; | 31 class unwind_protect; |
31 | 32 |
32 #define panic_impossible() \ | 33 #define panic_impossible() \ |
33 panic ("impossible state reached in file '%s' at line %d", \ | 34 panic ("impossible state reached in file '%s' at line %d", \ |
135 extern OCTINTERP_API bool discard_warning_messages; | 136 extern OCTINTERP_API bool discard_warning_messages; |
136 | 137 |
137 // Helper functions to pass last error and warning messages and ids | 138 // Helper functions to pass last error and warning messages and ids |
138 extern OCTINTERP_API std::string last_error_message (void); | 139 extern OCTINTERP_API std::string last_error_message (void); |
139 extern OCTINTERP_API std::string last_error_id (void); | 140 extern OCTINTERP_API std::string last_error_id (void); |
141 extern OCTINTERP_API octave_map last_error_stack (void); | |
140 extern OCTINTERP_API std::string last_warning_message (void); | 142 extern OCTINTERP_API std::string last_warning_message (void); |
141 extern OCTINTERP_API std::string last_warning_id (void); | 143 extern OCTINTERP_API std::string last_warning_id (void); |
142 | 144 |
143 extern OCTINTERP_API void interpreter_try (unwind_protect&); | 145 extern OCTINTERP_API void interpreter_try (unwind_protect&); |
144 | 146 |