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__)
52 OCTAVE_DEPRECATED (
"use 'print_usage' or 'verror' instead")
58 void usage (const
char *fmt, ...);
64 void verror (const
char *fmt, va_list args);
67 void error (const
char *fmt, ...);
72 void error (
octave::execution_exception&, const
char *fmt, ...);
86 const
char *fmt, va_list args);
89 message_with_id (const
char *
id, const
char *name, const
char *fmt, ...);
92 void vusage_with_id (const
char *
id, const
char *fmt, va_list args);
104 void verror_with_id (const
char *
id, const
char *fmt, va_list args);
122 void panic (const
char *fmt, ...);
OCTINTERP_API void vmessage_with_id(const char *id, const char *name, const char *fmt, va_list args)
Octave interface to the compression and uncompression libraries.
OCTINTERP_API bool Vdebug_on_caught
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
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,...)
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_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)
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)