23 #if ! defined (octave_error_h) 24 #define octave_error_h 1 26 #include "octave-config.h" 40 #define panic_impossible() \ 41 panic ("impossible state reached in file '%s' at line %d", __FILE__, __LINE__) 47 extern OCTINTERP_API octave::execution_exception
50 extern OCTINTERP_API
void 51 vmessage (
const char *
name,
const char *fmt, va_list args);
53 extern OCTINTERP_API
void message (
const char *
name,
const char *fmt, ...);
55 OCTAVE_DEPRECATED (4.2,
"use 'print_usage' or 'verror' instead")
56 OCTAVE_NORETURN OCTINTERP_API extern
57 void vusage (const
char *fmt, va_list args);
60 OCTAVE_NORETURN OCTINTERP_API extern
61 void usage (const
char *fmt, ...);
63 extern OCTINTERP_API
void vwarning (const
char *fmt, va_list args);
64 extern OCTINTERP_API
void warning (const
char *fmt, ...);
66 OCTAVE_NORETURN OCTINTERP_API extern
67 void verror (const
char *fmt, va_list args);
69 OCTAVE_NORETURN OCTINTERP_API extern
70 void error (const
char *fmt, ...);
72 OCTAVE_NORETURN OCTINTERP_API extern
74 OCTAVE_NORETURN OCTINTERP_API extern
77 OCTAVE_NORETURN OCTINTERP_API extern
79 OCTAVE_NORETURN OCTINTERP_API extern
82 OCTAVE_NORETURN OCTINTERP_API extern
84 OCTAVE_NORETURN OCTINTERP_API extern
87 extern OCTINTERP_API
void 89 const
char *fmt, va_list args);
91 extern OCTINTERP_API
void 94 OCTAVE_NORETURN OCTINTERP_API extern
95 void vusage_with_id (const
char *
id, const
char *fmt, va_list args);
97 OCTAVE_NORETURN OCTINTERP_API extern
100 extern OCTINTERP_API
void 103 extern OCTINTERP_API
void 106 OCTAVE_NORETURN OCTINTERP_API extern
107 void verror_with_id (const
char *
id, const
char *fmt, va_list args);
109 OCTAVE_NORETURN OCTINTERP_API extern
112 OCTAVE_NORETURN OCTINTERP_API extern
115 OCTAVE_NORETURN OCTINTERP_API extern
118 OCTAVE_NORETURN OCTINTERP_API extern
121 OCTAVE_NORETURN OCTINTERP_API extern
124 OCTAVE_NORETURN OCTINTERP_API extern
125 void panic (const
char *fmt, ...);
OCTINTERP_API void vmessage_with_id(const char *id, const char *name, const char *fmt, va_list args)
OCTINTERP_API bool Vdebug_on_caught
OCTINTERP_API void initialize_default_warning_state(void)
OCTINTERP_API void print_usage(void)
OCTAVE_NORETURN OCTINTERP_API void error_with_id_cfn(const char *id, const char *fmt,...)
OCTINTERP_API octave::execution_exception make_execution_exception(const char *who)
OCTAVE_NORETURN OCTINTERP_API void vparse_error(const char *fmt, va_list args)
OCTINTERP_API void reset_error_handler(void)
OCTAVE_NORETURN OCTINTERP_API void panic(const char *fmt,...)
OCTINTERP_API void warning_with_id(const char *id, const char *fmt,...)
OCTINTERP_API int in_try_catch
OCTINTERP_API octave_value_list set_warning_state(const std::string &id, const std::string &state)
OCTINTERP_API void message(const char *name, const char *fmt,...)
OCTAVE_NORETURN OCTINTERP_API void error_with_id(const char *id, const char *fmt,...)
OCTINTERP_API void vmessage(const char *name, const char *fmt, va_list args)
OCTINTERP_API void message_with_id(const char *id, const char *name, const char *fmt,...)
OCTAVE_EXPORT octave_value_list or class The return code an ordinary file in Octave s or(after appending @samp{.m}) a function file in Octave 's ode
OCTAVE_NORETURN OCTINTERP_API void parse_error(const char *fmt,...)
OCTAVE_NORETURN OCTINTERP_API void vparse_error_with_id(const char *id, const char *fmt, va_list args)
nd deftypefn *std::string name
OCTINTERP_API void disable_warning(const std::string &id)
OCTINTERP_API bool discard_error_messages
OCTINTERP_API std::string last_warning_id(void)
OCTAVE_NORETURN OCTINTERP_API void verror_with_id_cfn(const char *id, const char *fmt, va_list args)
OCTAVE_NORETURN OCTINTERP_API void verror_with_id(const char *id, const char *fmt, va_list args)
OCTAVE_NORETURN OCTINTERP_API void verror(const char *fmt, va_list args)
OCTINTERP_API std::string last_error_id(void)
OCTINTERP_API bool Vdebug_on_warning
OCTAVE_NORETURN OCTINTERP_API void usage_with_id(const char *id, const char *fmt,...)
OCTINTERP_API int warning_enabled(const std::string &id)
static uint32_t state[624]
OCTINTERP_API bool discard_warning_messages
OCTINTERP_API std::string last_error_message(void)
OCTINTERP_API int error_state
OCTINTERP_API bool Vdebug_on_error
OCTINTERP_API octave_map last_error_stack(void)
OCTAVE_NORETURN OCTINTERP_API void vusage(const char *fmt, va_list args)
OCTINTERP_API int warning_state
OCTAVE_NORETURN OCTINTERP_API void vusage_with_id(const char *id, const char *fmt, va_list args)
OCTAVE_NORETURN OCTINTERP_API void error(const char *fmt,...)
OCTINTERP_API int buffer_error_messages
OCTAVE_NORETURN OCTINTERP_API void verror_with_cfn(const char *fmt, va_list args)
OCTINTERP_API std::string last_warning_message(void)
OCTINTERP_API void vwarning_with_id(const char *id, const char *fmt, va_list args)
If this string is the system will ring the terminal sometimes it is useful to be able to print the original representation of the string
OCTINTERP_API void defun_usage_message(const std::string &msg)
OCTAVE_NORETURN OCTINTERP_API void error_with_cfn(const char *fmt,...)
OCTAVE_NORETURN OCTINTERP_API void usage(const char *fmt,...)
OCTINTERP_API void warning(const char *fmt,...)
OCTINTERP_API void interpreter_try(octave::unwind_protect &)
OCTAVE_NORETURN OCTINTERP_API void parse_error_with_id(const char *id, const char *fmt,...)
OCTINTERP_API void vwarning(const char *fmt, va_list args)