GNU Octave  4.4.1
A high-level interpreted language, primarily intended for numerical computations, mostly compatible with Matlab
error.cc File Reference
#include <cstdarg>
#include <cstdlib>
#include <cstring>
#include <iomanip>
#include <iostream>
#include <sstream>
#include <string>
#include "bp-table.h"
#include "builtin-defun-decls.h"
#include "call-stack.h"
#include "defun.h"
#include "error.h"
#include "input.h"
#include "interpreter-private.h"
#include "interpreter.h"
#include "oct-map.h"
#include "octave.h"
#include "ov-usr-fcn.h"
#include "ov.h"
#include "ovl.h"
#include "pager.h"
#include "pt-eval.h"
#include "unwind-prot.h"
#include "utils.h"
#include "variables.h"
Include dependency graph for error.cc:

Go to the source code of this file.

Classes

struct  error_stack_frame
 

Typedefs

typedef void(* error_fun) (const char *, const char *,...)
 

Functions

static int check_state (const std::string &state)
 
void defun_usage_message (const std::string &msg)
 
static void defun_usage_message_1 (const char *fmt,...)
 
void error (const char *fmt,...)
 
void error (octave::execution_exception &e, const char *fmt,...)
 
static OCTAVE_NORETURN void error_1 (octave::execution_exception &e, std::ostream &os, const char *name, const char *id, const char *fmt, va_list args, bool with_cfn=false)
 
static OCTAVE_NORETURN void error_1 (std::ostream &os, const char *name, const char *id, const char *fmt, va_list args, bool with_cfn=false)
 
void error_with_cfn (const char *fmt,...)
 
void error_with_id (const char *id, const char *fmt,...)
 
void error_with_id_cfn (const char *id, const char *fmt,...)
 
OCTAVE_EXPORT octave_value_list Frethrow (const octave_value_list &args, int) lasterr
 
octave_value_list Fsprintf (const octave_value_list &, int)
 
static std::string handle_message (error_fun f, const char *id, const char *msg, const octave_value_list &args, bool have_fmt)
 
static octave_map initialize_last_error_stack (void)
 
static void initialize_warning_options (const std::string &state)
 
octave::execution_exception make_execution_exception (const char *who)
 
static std::list< error_stack_framemake_stack_frame_list (const octave_map &stack)
 
static void maybe_enter_debugger (octave::execution_exception &e, bool show_stack_trace=false)
 
void message (const char *name, const char *fmt,...)
 
void message_with_id (const char *name, const char *id, const char *fmt,...)
 
void panic (const char *fmt,...)
 
void parse_error (const char *fmt,...)
 
void parse_error_with_id (const char *id, const char *fmt,...)
 
static void pr_where (std::ostream &os, const char *who, const std::list< error_stack_frame > &frames)
 
static void pr_where (std::ostream &os, const char *who)
 
static void pr_where_1 (std::ostream &os, const char *fmt,...)
 
static void pr_where_2 (std::ostream &os, const char *fmt, va_list args)
 
void reset_error_handler (void)
 
void rethrow_error (const char *id, const char *fmt,...)
 
static OCTAVE_NORETURN void rethrow_error (const std::string &id, const std::string &msg, const octave_map &stack)
 
static void rethrow_error_1 (const char *id, const char *fmt,...)
 
void usage (const char *fmt,...)
 
static OCTAVE_NORETURN void usage_1 (octave::execution_exception &e, const char *id, const char *fmt, va_list args)
 
static OCTAVE_NORETURN void usage_1 (const char *id, const char *fmt, va_list args)
 
void usage_with_id (const char *id, const char *fmt,...)
 
static void verror (bool save_last_error, std::ostream &os, const char *name, const char *id, const char *fmt, va_list args, bool with_cfn=false)
 
void verror (const char *fmt, va_list args)
 
void verror (octave::execution_exception &e, const char *fmt, va_list args)
 
void verror_with_cfn (const char *fmt, va_list args)
 
void verror_with_id (const char *id, const char *fmt, va_list args)
 
void verror_with_id_cfn (const char *id, const char *fmt, va_list args)
 
void vmessage (const char *name, const char *fmt, va_list args)
 
void vmessage_with_id (const char *name, const char *id, const char *fmt, va_list args)
 
void vparse_error (const char *fmt, va_list args)
 
void vparse_error_with_id (const char *id, const char *fmt, va_list args)
 
void vusage (const char *fmt, va_list args)
 
void vusage_with_id (const char *id, const char *fmt, va_list args)
 
static void vwarning (const char *name, const char *id, const char *fmt, va_list args)
 
void vwarning (const char *fmt, va_list args)
 
void vwarning_with_id (const char *id, const char *fmt, va_list args)
 
void warning (const char *fmt,...)
 
static void warning_1 (const char *id, const char *fmt, va_list args)
 
int warning_enabled (const std::string &id)
 
void warning_with_id (const char *id, const char *fmt,...)
 

Variables

int buffer_error_messages = 0
 
bool discard_error_messages = false
 
bool discard_warning_messages = false
 
OCTAVE_EXPORT octave_value_list error nd deftypefn *const octave_scalar_map err = args(0).scalar_map_value ()
 
int error_state = 0
 
int in_try_catch = 0
 
static bool Vbacktrace_on_warning = true
 
static bool Vbeep_on_error = false
 
bool Vdebug_on_caught = false
 
bool Vdebug_on_error = false
 
bool Vdebug_on_warning = false
 
static std::string Vlast_error_id
 
static std::string Vlast_error_message
 
static octave_map Vlast_error_stack
 
static std::string Vlast_warning_id
 
static std::string Vlast_warning_message
 
static bool Vquiet_warning = false
 
static bool Vverbose_warning
 
static octave_map warning_options
 

Typedef Documentation

◆ error_fun

typedef void(* error_fun) (const char *, const char *,...)

Definition at line 970 of file error.cc.

Function Documentation

◆ check_state()

static int check_state ( const std::string state)
static

Definition at line 647 of file error.cc.

References state.

Referenced by warning_enabled().

◆ defun_usage_message()

void defun_usage_message ( const std::string msg)

Definition at line 965 of file error.cc.

References defun_usage_message_1().

◆ defun_usage_message_1()

static void defun_usage_message_1 ( const char *  fmt,
  ... 
)
static

Definition at line 956 of file error.cc.

References error_1(), and octave_stdout.

Referenced by defun_usage_message().

◆ error() [1/2]

void error ( const char *  fmt,
  ... 
)

Definition at line 578 of file error.cc.

References verror().

Referenced by octave::__get_interpreter__(), QtHandles::__init__(), octave::__require_current_scope__(), octave::bp_table::add_breakpoint(), add_hdf5_data(), octave::tree_index_expression::append(), mxArray_sparse::as_octave_value(), octave_base_sparse< SparseComplexMatrix >::assign(), octave_map::assign(), bitop(), bitopxx(), octave_mex_function::call(), octave_builtin::call(), octave_user_script::call(), octave_fcn_handle::call(), octave_user_function::call(), octave_map::cat(), cat(), catch(), cdef_class::cdef_class(), cdef_method::cdef_method(), cdef_package::cdef_package(), cdef_property::cdef_property(), octave_char_matrix_str::cellstr_value(), octave_cell::cellstr_value(), check_access(), check_exception(), octave::load_path::package_info::check_file_type(), check_hdf5_id_value(), check_version(), class_fevalStatic(), class_fromName(), class_getConstant(), octave_oncleanup::clone(), color_values::color_values(), Cell::column(), octave_class::exemplar_info::compare(), OCTAVE_VALUE_INT_MATRIX_T::complex_matrix_value(), octave_map::concat(), octave::bp_table::condition_valid(), octave_link::connect_link(), octave::convert_data(), property::create(), color_property::current_value(), double_radio_property::current_value(), octave::bp_table::dbstop_process_map_args(), decode_subscripts(), octave::tree_evaluator::define_parameter_list_from_arg_vector(), octave_base_sparse< SparseComplexMatrix >::delete_elements(), octave_float_complex_matrix::diag(), octave_complex_matrix::diag(), octave_float_matrix::diag(), octave_matrix::diag(), symbol_info_list::symbol_info::display_line(), do_bessel(), do_edit_history(), gh_manager::do_execute_callback(), do_fft(), do_fft2(), do_fftn(), gh_manager::do_free(), do_fwrite(), do_history(), octave_base_sparse< SparseComplexMatrix >::do_index_op(), octave_base_value::do_index_op(), do_isglobal(), gh_manager::do_make_graphics_handle(), do_minmax_body(), octave_value::do_non_const_unary_op(), QtHandles::GLCanvas::do_print(), octave::do_printf_conv(), octave::do_printf_string(), do_rand(), gh_manager::do_renumber_figure(), octave::textscan::do_scan(), base_property::do_set(), string_property::do_set(), string_array_property::do_set(), text_label_property::do_set(), radio_property::do_set(), color_property::do_set(), double_property::do_set(), double_radio_property::do_set(), array_property::do_set(), handle_property::do_set(), children_property::do_set(), callback_property::do_set(), do_tril(), do_trilu(), do_triu(), do_who(), octave_class::dotref(), double_radio_property::double_value(), octave::tree_evaluator::echo(), err_2_or_3_dim_plot(), err_assign_conversion_failed(), octave::err_bad_result(), err_data_conversion(), err_disabled_feature(), err_failed_diagonalization(), err_indexed_assignment(), err_indexed_cs_list(), err_invalid_conversion(), octave::err_invalid_file_id(), err_invalid_index1(), err_invalid_index_for_assignment(), err_invalid_index_type(), err_invalid_inquiry_subscript(), cdef_object_rep::err_invalid_object(), err_invalid_structure_assignment(), mxArray_base::err_invalid_type(), mxArray_matlab::err_invalid_type(), err_method_access(), err_no_conversion(), err_nonbraced_cs_list_assignment(), err_nonconformant(), err_nonsquare_matrix(), err_not_implemented(), err_property_access(), err_range_invalid(), err_set_invalid(), err_square_matrix_required(), err_string_invalid(), err_unary_op(), err_unary_op_conv(), err_unary_op_conversion_failed(), err_unrecognized_data_fmt(), err_unrecognized_float_fmt(), err_user_returned_invalid(), err_user_supplied_eval(), err_wrong_type_arg(), err_wrong_type_arg_for_binary_op(), err_wrong_type_arg_for_unary_op(), octave::tree_checker::errmsg(), octave::opengl_tesselator::error(), octave::stream::error(), eval_error(), octave_class::exemplar_info::exemplar_info(), extended_gcd(), extract_function(), F__dsearchn__(), F__ftp_ascii__(), F__ftp_binary__(), F__ftp_close__(), F__ftp_cwd__(), F__ftp_delete__(), F__ftp_dir__(), F__ftp_mget__(), F__ftp_mkdir__(), F__ftp_mode__(), F__ftp_mput__(), F__ftp_pwd__(), F__ftp_rename__(), F__ftp_rmdir__(), F__get_frame__(), F__lin_interpn__(), F__magick_read__(), F__pchip_deriv__(), F__zoom__(), Fbalance(), Fblkmm(), Fcell2struct(), Fcolloc(), Fconv2(), Fdaspk(), Fdasrt(), Fdassl(), Feig(), Fellipj(), Ffilter(), Ffunctions(), Fget(), Fgsvd(), filter(), OCTAVE_VALUE_INT_MATRIX_T::float_complex_matrix_value(), OCTAVE_VALUE_INT_MATRIX_T::float_matrix_value(), Flsode(), Fmgorth(), Fnproc(), Fnumfields(), fopen_mode_to_ios_mode(), Fopenvar(), for(), Fquad(), Fqz(), Frcond(), octave::url_handle_manager::free(), Fspparms(), Fsvd(), octave::ft_manager::ft_manager(), Ftoc(), G__delaunayn__(), G__eigs__(), G__glpk__(), G__init_fltk__(), G__init_gnuplot__(), G__ode15__(), G__osmesa_print__(), G__voronoi__(), Gamd(), Gaudiodevinfo(), Gaudioread(), Gccolamd(), Gchol(), Gcolamd(), Gconvhulln(), base_property::get(), cdef_object_scalar::get(), get_blkmm_dims(), get_dim_vector(), base_properties::get_dynamic(), octave::stream_list::get_file_number(), get_graphics_object_type(), octave::stream_list::get_info(), get_lines_and_columns(), get_mapper_fun_options(), QtHandles::ObjectProxy::get_pixels(), cdef_object_scalar::get_property(), base_properties::get_property_dynamic(), get_region_range(), octave::get_size(), octave::gtk_manager::get_toolkit(), Gfftw(), octave::gl2ps_print(), glpk(), Gqr(), gripe_2_or_3_dim_plot(), gripe_data_conversion(), gripe_disabled_feature(), gripe_empty_arg(), base_graphics_toolkit::gripe_if_tkit_invalid(), gripe_indexed_cs_list(), gripe_invalid_conversion(), gripe_invalid_inquiry_subscript(), gripe_nonbraced_cs_list_assignment(), gripe_nonconformant(), gripe_not_implemented(), gripe_not_supported(), gripe_range_invalid(), gripe_square_matrix_required(), gripe_string_invalid(), gripe_unrecognized_data_fmt(), gripe_unrecognized_float_fmt(), gripe_user_returned_invalid(), gripe_user_supplied_eval(), gripe_wrong_type_arg(), gripe_wrong_type_arg_for_binary_op(), gripe_wrong_type_arg_for_unary_op(), Gsymbfact(), hdf5_read_next_data_internal(), hex2nibble(), hex2num(), hook_function::hook_function(), ichol_0(), ichol_checkpivot_complex(), ichol_checkpivot_real(), ichol_t(), identity_matrix(), if(), ilu_0(), index_error(), octave_class::index_vector(), initial_class_path(), initialize_jvm(), octave::stream_list::insert(), octave::fcn_info::fcn_info_rep::install_built_in_dispatch(), octave::symbol_table::install_built_in_dispatch(), octave_errno::instance_ok(), octave::pager_stream::instance_ok(), octave::shortcut_manager::instance_ok(), octave::resource_manager::instance_ok(), octave::diary_stream::instance_ok(), octave::ft_manager::instance_ok(), octave::display_info::instance_ok(), mxArray_number::int_to_ov(), mxArray_base::invalid_type_error(), octave::tree_evaluator::is_logically_true(), octave_cell::is_sorted_rows(), octave_cell::is_true(), is_valid_function(), octave_cell::issorted(), lin_interpn(), octave_base_int_matrix< intNDArray< OCTAVE_INT_T > >::load_ascii(), octave_fcn_handle::load_ascii(), octave_struct::load_ascii(), octave_float_complex_matrix::load_ascii(), octave_cell::load_ascii(), octave_complex_matrix::load_ascii(), octave_char_matrix_str::load_ascii(), octave_base_int_scalar< OCTAVE_INT_T >::load_ascii(), octave_base_sparse< SparseComplexMatrix >::load_ascii(), octave_float_complex::load_ascii(), octave_complex::load_ascii(), octave_class::load_ascii(), octave_float_matrix::load_ascii(), octave_base_diag< DiagMatrix, Matrix >::load_ascii(), octave_lazy_index::load_ascii(), octave_bool_matrix::load_ascii(), octave_perm_matrix::load_ascii(), octave_matrix::load_ascii(), octave_bool::load_ascii(), octave_float_scalar::load_ascii(), octave_scalar::load_ascii(), octave_scalar_struct::load_ascii(), octave_range::load_ascii(), octave_sparse_bool_matrix::load_binary(), octave_fcn_handle::load_binary(), octave_sparse_complex_matrix::load_binary(), octave_struct::load_binary(), octave_sparse_matrix::load_binary(), octave_cell::load_binary(), octave_lazy_index::load_binary(), octave_scalar_struct::load_binary(), octave_fcn_handle::load_hdf5(), octave::dynamic_loader::load_mex(), octave::dynamic_loader::load_oct(), octave::tree_expression::lvalue(), octave::tree_index_expression::lvalue(), octave_value_list::make_argv(), cdef_manager::make_class(), make_fcn_handle(), make_idx_args(), octave::url_handle_manager::make_url_handle(), mex::malloc_unmarked(), octave_char_matrix::map(), octave_base_value::map(), octave::symbol_record::symbol_record_rep::mark_persistent(), OCTAVE_VALUE_INT_MATRIX_T::matrix_value(), cdef_meta_object_rep::meta_subsref(), mexErrMsgIdAndTxt(), mexErrMsgTxt(), mk_tmp_hist_file(), octave_base_value::nint_value(), octave_class::numel(), octave_classdef::numel(), octave_base_value::numeric_assign(), oct_binop_pow(), oct_catop_matrix_struct(), oct_catop_struct_matrix(), oct_unop_hermitian(), oct_unop_transpose(), octave_change_to_directory(), octave_class::octave_class(), octave_fcn_handle::octave_fcn_handle(), octave_fcn_inline::octave_fcn_inline(), octave_handle::octave_handle(), octave_oncleanup::octave_oncleanup(), octave_qhull_dims_ok(), octave_range::octave_range(), octcellregexp(), octave_value::op_eq_to_binary_op(), open_diary_file(), octave::opengl_renderer::opengl_renderer(), octave_map::optimize_dimensions(), octave_scalar_map::orderfields(), octave_map::orderfields(), octave::bp_table::parse_dbfunction_params(), parse_options(), octave::textscan::parse_options(), symbol_info_list::parse_whos_line_format(), pattern(), permute_to_correct_order(), print_usage(), octave::textscan_format_list::process_conversion(), octave::call_stack::push(), qp(), read_binary_data(), read_file(), octave::textscan::read_format_once(), read_images(), read_mat5_binary_element(), read_mat5_binary_file_header(), read_mat_ascii_data(), read_mat_binary_data(), read_mat_file_header(), read_text_data(), reinterpret_copy(), reinterpret_int_copy(), octave::bp_table::remove_all_breakpoints_in_file(), octave::bp_table::remove_breakpoint(), children_property::renumber(), reparent(), octave::symbol_table::require_current_scope(), octave::profiler::reset(), rethrow_error(), color_property::rgb(), run_command_and_return_output(), save_mat5_binary_element(), save_three_d(), octave_base_value::scalar_map_value(), base_scaler::scale(), property_list::set(), graphics_object::set(), figure::properties::set___graphics_toolkit__(), base_properties::set_dynamic(), octave_fcn_handle::set_fcn(), set_format_style(), base_properties::set_from_list(), octave::octave_lvalue::set_index(), octave::ft_text_renderer::set_mode(), base_properties::set_parent(), cdef_object_scalar::set_property(), octave::symbol_table::set_scope_and_context(), axes::properties::set_text_child(), octave_map::setfield(), simple_gcd(), octave_class::size(), octave_cell::sort(), octave_cell::sort_rows_idx(), sparse(), octave_value_list::splice(), octave_base_value::squeeze(), octave::tree_identifier::static_workspace_error(), string_array_property::string_array_property(), octave_char_matrix_str::string_value(), octave_char_matrix_str::string_vector_value(), octave_class::string_vector_value(), octave_base_scalar< bool >::subsasgn(), octave_base_diag< DiagMatrix, Matrix >::subsasgn(), octave_struct::subsasgn(), octave_base_matrix< boolNDArray >::subsasgn(), octave_cell::subsasgn(), octave_base_sparse< SparseComplexMatrix >::subsasgn(), octave_scalar_struct::subsasgn(), octave_base_value::subsasgn(), octave_classdef::subsasgn(), octave_class::subsasgn_common(), octave_perm_matrix::subsref(), octave_base_scalar< bool >::subsref(), octave_base_diag< DiagMatrix, Matrix >::subsref(), octave_base_matrix< boolNDArray >::subsref(), octave_cell::subsref(), octave_base_sparse< SparseComplexMatrix >::subsref(), octave_fcn_handle::subsref(), octave_range::subsref(), octave_base_value::subsref(), symbol_exist(), octave::opengl_tesselator::tess_error(), to_cdef(), to_cdef_ref(), octave::tree_decl_command::tree_decl_command(), octave::tree_funcall::tree_funcall(), try_cellfun_internal_ops(), octave_value::unary_op_to_assign_op(), base_scaler::unscale(), base_graphics_object::update_axis_limits(), octave::symbol_scope_rep::update_nest(), radio_values::validate(), color_values::validate(), array_property::validate(), validate_property_name(), base_graphics_object::value_as_string(), base_property::values_as_cell(), base_property::values_as_string(), base_graphics_object::values_as_string(), base_graphics_object::values_as_struct(), octave::tree_evaluator::visit_break_command(), octave::tree_evaluator::visit_cell(), octave::tree_evaluator::visit_colon_expression(), octave::tree_evaluator::visit_complex_for_command(), octave::tree_evaluator::visit_constant(), octave::tree_evaluator::visit_decl_elt(), octave::tree_evaluator::visit_index_expression(), octave::tree_evaluator::visit_multi_assignment(), octave::tree_evaluator::visit_simple_assignment(), octave::tree_evaluator::visit_simple_for_command(), octave::tree_evaluator::visit_statement_list(), octave::tree_evaluator::visit_switch_command(), write_mat5_array(), xpow(), and mex::~mex().

◆ error() [2/2]

void error ( octave::execution_exception &  e,
const char *  fmt,
  ... 
)

Definition at line 593 of file error.cc.

References e, and verror().

◆ error_1() [1/2]

static OCTAVE_NORETURN void error_1 ( octave::execution_exception &  e,
std::ostream &  os,
const char *  name,
const char *  id,
const char *  fmt,
va_list  args,
bool  with_cfn = false 
)
static

◆ error_1() [2/2]

static OCTAVE_NORETURN void error_1 ( std::ostream &  os,
const char *  name,
const char *  id,
const char *  fmt,
va_list  args,
bool  with_cfn = false 
)
static

Definition at line 563 of file error.cc.

References e, error_1(), make_execution_exception(), name, and os.

◆ error_with_cfn()

void error_with_cfn ( const char *  fmt,
  ... 
)

Definition at line 608 of file error.cc.

References verror_with_cfn().

◆ error_with_id()

◆ error_with_id_cfn()

void error_with_id_cfn ( const char *  id,
const char *  fmt,
  ... 
)

Definition at line 638 of file error.cc.

References verror_with_id_cfn().

◆ Frethrow()

OCTAVE_EXPORT octave_value_list Frethrow ( const octave_value_list args,
int   
)

◆ Fsprintf()

octave_value_list Fsprintf ( const octave_value_list ,
int   
)

Referenced by handle_message().

◆ handle_message()

static std::string handle_message ( error_fun  f,
const char *  id,
const char *  msg,
const octave_value_list args,
bool  have_fmt 
)
static

◆ initialize_last_error_stack()

static octave_map initialize_last_error_stack ( void  )
static

Definition at line 144 of file error.cc.

References octave::__get_call_stack__(), cs, and octave::call_stack::empty_backtrace().

Referenced by verror().

◆ initialize_warning_options()

static void initialize_warning_options ( const std::string state)
static

Definition at line 133 of file error.cc.

References octave_scalar_map::setfield(), state, and warning_options.

◆ make_execution_exception()

octave::execution_exception make_execution_exception ( const char *  who)

Definition at line 341 of file error.cc.

References pr_where(), and retval.

Referenced by err_user_supplied_eval(), err_wrong_type_arg(), error_1(), rethrow_error(), and usage_1().

◆ make_stack_frame_list()

static std::list<error_stack_frame> make_stack_frame_list ( const octave_map stack)
static

Definition at line 864 of file error.cc.

References column, octave_map::contains(), octave_map::contents(), frame, i, and name.

Referenced by rethrow_error().

◆ maybe_enter_debugger()

◆ message()

◆ message_with_id()

void message_with_id ( const char *  name,
const char *  id,
const char *  fmt,
  ... 
)

Definition at line 451 of file error.cc.

References name, and vmessage_with_id().

◆ panic()

void panic ( const char *  fmt,
  ... 
)

◆ parse_error()

void parse_error ( const char *  fmt,
  ... 
)

Definition at line 831 of file error.cc.

References vparse_error().

◆ parse_error_with_id()

void parse_error_with_id ( const char *  id,
const char *  fmt,
  ... 
)

Definition at line 846 of file error.cc.

References vparse_error_with_id().

◆ pr_where() [1/2]

static void pr_where ( std::ostream &  os,
const char *  who,
const std::list< error_stack_frame > &  frames 
)
static

Definition at line 286 of file error.cc.

References column, line::line(), os, pr_where_1(), and string.

Referenced by make_execution_exception(), pr_where(), rethrow_error(), and warning_1().

◆ pr_where() [2/2]

static void pr_where ( std::ostream &  os,
const char *  who 
)
static

◆ pr_where_1()

static void pr_where_1 ( std::ostream &  os,
const char *  fmt,
  ... 
)
static

Definition at line 269 of file error.cc.

References os, and pr_where_2().

Referenced by pr_where().

◆ pr_where_2()

static void pr_where_2 ( std::ostream &  os,
const char *  fmt,
va_list  args 
)
static

Definition at line 241 of file error.cc.

References os, panic(), string, strlen(), and verror().

Referenced by pr_where_1().

◆ reset_error_handler()

void reset_error_handler ( void  )

Definition at line 125 of file error.cc.

References buffer_error_messages, discard_error_messages, and in_try_catch.

◆ rethrow_error() [1/2]

void rethrow_error ( const char *  id,
const char *  fmt,
  ... 
)

Definition at line 855 of file error.cc.

References error_1().

◆ rethrow_error() [2/2]

static OCTAVE_NORETURN void rethrow_error ( const std::string id,
const std::string msg,
const octave_map stack 
)
static

◆ rethrow_error_1()

static void rethrow_error_1 ( const char *  id,
const char *  fmt,
  ... 
)
static

Definition at line 895 of file error.cc.

References verror().

Referenced by rethrow_error().

◆ usage()

void usage ( const char *  fmt,
  ... 
)

Definition at line 487 of file error.cc.

References usage_1().

◆ usage_1() [1/2]

static OCTAVE_NORETURN void usage_1 ( octave::execution_exception &  e,
const char *  id,
const char *  fmt,
va_list  args 
)
static

Definition at line 461 of file error.cc.

References e, maybe_enter_debugger(), and verror().

Referenced by usage(), usage_1(), vusage(), and vusage_with_id().

◆ usage_1() [2/2]

static OCTAVE_NORETURN void usage_1 ( const char *  id,
const char *  fmt,
va_list  args 
)
static

Definition at line 473 of file error.cc.

References e, make_execution_exception(), and usage_1().

◆ usage_with_id()

void usage_with_id ( const char *  id,
const char *  fmt,
  ... 
)

Definition at line 502 of file error.cc.

References vusage_with_id().

◆ verror() [1/3]

◆ verror() [2/3]

void verror ( const char *  fmt,
va_list  args 
)

Definition at line 572 of file error.cc.

References error_1().

◆ verror() [3/3]

void verror ( octave::execution_exception &  e,
const char *  fmt,
va_list  args 
)

Definition at line 587 of file error.cc.

References e, and error_1().

◆ verror_with_cfn()

void verror_with_cfn ( const char *  fmt,
va_list  args 
)

Definition at line 602 of file error.cc.

References error_1().

Referenced by error_with_cfn().

◆ verror_with_id()

void verror_with_id ( const char *  id,
const char *  fmt,
va_list  args 
)

Definition at line 617 of file error.cc.

References error_1().

Referenced by error_with_id(), and mexErrMsgIdAndTxt().

◆ verror_with_id_cfn()

void verror_with_id_cfn ( const char *  id,
const char *  fmt,
va_list  args 
)

Definition at line 632 of file error.cc.

References error_1().

Referenced by error_with_id_cfn().

◆ vmessage()

void vmessage ( const char *  name,
const char *  fmt,
va_list  args 
)

Definition at line 429 of file error.cc.

References name, and verror().

Referenced by message().

◆ vmessage_with_id()

void vmessage_with_id ( const char *  name,
const char *  id,
const char *  fmt,
va_list  args 
)

Definition at line 444 of file error.cc.

References name, and verror().

Referenced by message_with_id().

◆ vparse_error()

void vparse_error ( const char *  fmt,
va_list  args 
)

Definition at line 825 of file error.cc.

References error_1().

Referenced by parse_error().

◆ vparse_error_with_id()

void vparse_error_with_id ( const char *  id,
const char *  fmt,
va_list  args 
)

Definition at line 840 of file error.cc.

References error_1().

Referenced by parse_error_with_id().

◆ vusage()

void vusage ( const char *  fmt,
va_list  args 
)

Definition at line 481 of file error.cc.

References usage_1().

◆ vusage_with_id()

void vusage_with_id ( const char *  id,
const char *  fmt,
va_list  args 
)

Definition at line 496 of file error.cc.

References usage_1().

Referenced by usage_with_id().

◆ vwarning() [1/2]

static void vwarning ( const char *  name,
const char *  id,
const char *  fmt,
va_list  args 
)
static

◆ vwarning() [2/2]

void vwarning ( const char *  fmt,
va_list  args 
)

Definition at line 795 of file error.cc.

References warning_1().

◆ vwarning_with_id()

void vwarning_with_id ( const char *  id,
const char *  fmt,
va_list  args 
)

Definition at line 810 of file error.cc.

References warning_1().

Referenced by mexWarnMsgIdAndTxt(), and warning_with_id().

◆ warning()

void warning ( const char *  fmt,
  ... 
)

Definition at line 801 of file error.cc.

References vwarning().

Referenced by octave::load_path::add(), octave_user_code::cache_function_text(), octave::file_editor_tab::check_valid_codec(), octave::files_dock_widget::contextmenu_delete(), convert_cdata(), octave_base_int_matrix< intNDArray< OCTAVE_INT_T > >::convert_to_str_internal(), octave_sparse_matrix::convert_to_str_internal(), octave_base_int_scalar< OCTAVE_INT_T >::convert_to_str_internal(), octave_float_matrix::convert_to_str_internal(), octave_matrix::convert_to_str_internal(), octave_float_scalar::convert_to_str_internal(), octave_scalar::convert_to_str_internal(), octave::opengl_texture::create(), daspk_user_function(), daspk_user_jacobian(), dasrt_user_cf(), dasrt_user_f(), dasrt_user_j(), dassl_user_function(), dassl_user_jacobian(), gh_manager::do_close_all_figures(), octave::ft_manager::do_get_font(), do_load(), do_minmax_body(), do_regexp_ptn_string_escapes(), do_regexp_rep_string_escapes(), do_save(), do_who(), octave::documentation::documentation(), octave::opengl_renderer::draw(), octave::opengl_renderer::draw_axes(), octave::opengl_renderer::draw_image(), octave::opengl_renderer::draw_patch(), dump_octave_core(), eigs_func(), extract_function(), Fbalance(), Fformat(), Fgsvd(), Fopenvar(), for(), mex::free(), free_qhull_memory(), mex::free_value(), Fschur(), Fspparms(), Gaudiodevinfo(), Gconvhulln(), octave::ft_text_renderer::ft_font::get_face(), octave::get_fcn_files(), octave_user_code::get_file_info(), octave::load_path::dir_info::get_file_list(), mex::global_mark(), mex::global_unmark(), Gqr(), gripe_empty_arg(), gripe_invalid_value_specified(), gripe_wrong_type_arg(), hdf5_read_next_data_internal(), if(), octave::opengl_renderer::init_gl_context(), octave::load_path::dir_info::initialize(), octave::fcn_info::fcn_info_rep::install_built_in_dispatch(), octave_class::load_ascii(), octave_class::load_binary(), octave_class::load_hdf5(), lsode_user_function(), lsode_user_jacobian(), octave::opengl_renderer::make_marker_list(), mex::mark(), mex::mark_foreign(), octave::tree::meets_bp_condition(), mexWarnMsgTxt(), octave_oncleanup::octave_oncleanup(), octave::bp_table::parse_dbfunction_params(), parse_save_options(), quad_float_user_function(), quad_user_function(), read_file(), octave::textscan::read_format_once(), read_mat5_binary_element(), read_mat5_binary_file_header(), octave_class::reconstruct_exemplar(), octave::type_info::register_assign_op(), octave::type_info::register_assignany_op(), octave::type_info::register_binary_class_op(), octave::type_info::register_binary_op(), octave::type_info::register_cat_op(), octave::type_info::register_non_const_unary_op(), octave::type_info::register_pref_assign_conv(), octave::type_info::register_type(), octave::type_info::register_unary_class_op(), octave::type_info::register_unary_op(), octave::type_info::register_widening_op(), octave::documentation::registerDoc(), octave::load_path::remove(), octave_oncleanup::save_ascii(), octave_oncleanup::save_binary(), octave_complex_diag_matrix::save_binary(), octave_diag_matrix::save_binary(), octave_sparse_complex_matrix::save_binary(), octave_sparse_matrix::save_binary(), octave_complex_matrix::save_binary(), octave_matrix::save_binary(), octave_oncleanup::save_hdf5(), octave_sparse_complex_matrix::save_hdf5(), octave_sparse_matrix::save_hdf5(), octave_complex_matrix::save_hdf5(), octave_matrix::save_hdf5(), save_mat_ascii_data(), save_three_d(), save_vars(), octave::opengl_selector::select(), octave::ft_text_renderer::set_color(), octave::shortcut_manager::shortcut_dialog_finished(), mex::unmark(), mex::unmark_foreign(), QtHandles::ButtonControl::update(), QtHandles::PopupMenuControl::update(), octave::load_path::dir_info::update(), octave::ft_text_renderer::visit(), warn_dim_too_large(), warn_disabled_feature(), warn_empty_arg(), warn_invalid_value_specified(), octave::event_queue_safe::warn_unhandled_exception(), warn_wrong_type_arg(), write_mat5_array(), xpow(), axes::properties::zoom(), and octave_oncleanup::~octave_oncleanup().

◆ warning_1()

◆ warning_enabled()

int warning_enabled ( const std::string id)

◆ warning_with_id()

Variable Documentation

◆ buffer_error_messages

◆ discard_error_messages

◆ discard_warning_messages

bool discard_warning_messages = false

Definition at line 122 of file error.cc.

Referenced by generate_struct_completions(), vwarning(), and warning_1().

◆ err

OCTAVE_EXPORT octave_value_list error nd deftypefn* const octave_scalar_map err = args(0).scalar_map_value ()

◆ error_state

int error_state = 0

Definition at line 107 of file error.cc.

Referenced by octave::jit_typeinfo::jit_typeinfo().

◆ in_try_catch

int in_try_catch = 0

◆ Vbacktrace_on_warning

bool Vbacktrace_on_warning = true
static

Definition at line 74 of file error.cc.

Referenced by warning_1().

◆ Vbeep_on_error

bool Vbeep_on_error = false
static

Definition at line 57 of file error.cc.

Referenced by verror().

◆ Vdebug_on_caught

◆ Vdebug_on_error

◆ Vdebug_on_warning

◆ Vlast_error_id

std::string Vlast_error_id
static

Definition at line 95 of file error.cc.

Referenced by rethrow_error(), and verror().

◆ Vlast_error_message

std::string Vlast_error_message
static

Definition at line 86 of file error.cc.

Referenced by rethrow_error(), and verror().

◆ Vlast_error_stack

octave_map Vlast_error_stack
static

Definition at line 98 of file error.cc.

Referenced by rethrow_error(), and verror().

◆ Vlast_warning_id

std::string Vlast_warning_id
static

Definition at line 92 of file error.cc.

Referenced by vwarning().

◆ Vlast_warning_message

std::string Vlast_warning_message
static

Definition at line 89 of file error.cc.

Referenced by vwarning().

◆ Vquiet_warning

bool Vquiet_warning = false
static

Definition at line 80 of file error.cc.

Referenced by vwarning().

◆ Vverbose_warning

bool Vverbose_warning
static

Definition at line 77 of file error.cc.

◆ warning_options

octave_map warning_options
static

Definition at line 83 of file error.cc.

Referenced by initialize_warning_options(), and warning_enabled().