GNU Octave  8.1.0
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 <algorithm>
#include <iomanip>
#include <iostream>
#include <sstream>
#include <string>
#include "quit.h"
#include "bp-table.h"
#include "builtin-defun-decls.h"
#include "defun.h"
#include "error.h"
#include "event-manager.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.

Typedefs

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

Functions

static int check_state (const std::string &state)
 
static void defun_usage_message (const char *fmt,...)
 
void defun_usage_message (const std::string &msg)
 Helper function for print_usage defined in defun.cc. More...
 
void disable_warning (const std::string &id)
 
void error (const char *fmt,...)
 
void error (octave::execution_exception &ee, const char *fmt,...)
 
static OCTAVE_NORETURN void error_1 (const char *id, const char *fmt, va_list args)
 
static OCTAVE_NORETURN void error_1 (octave::execution_exception &ee, const char *id, const char *fmt, va_list args)
 
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 Fbeep_on_error (octave::interpreter &interp, const octave_value_list &args, int nargout)
 
OCTAVE_EXPORT octave_value_list Fdebug_on_error (octave::interpreter &interp, const octave_value_list &args, int nargout)
 
OCTAVE_EXPORT octave_value_list Fdebug_on_warning (octave::interpreter &interp, const octave_value_list &args, int nargout)
 
OCTAVE_EXPORT octave_value_list Ferror (octave::interpreter &interp, const octave_value_list &args, int)
 
OCTAVE_EXPORT octave_value_list Flasterr (octave::interpreter &interp, const octave_value_list &args, int nargout)
 
OCTAVE_EXPORT octave_value_list Flasterror (octave::interpreter &interp, const octave_value_list &args, int)
 
OCTAVE_EXPORT octave_value_list Flastwarn (octave::interpreter &interp, const octave_value_list &args, int nargout)
 
static std::string format_message (const char *fmt, va_list args)
 
OCTAVE_EXPORT octave_value_list Frethrow (octave::interpreter &interp, const octave_value_list &args, int)
 
OCTAVE_EXPORT octave_value_list Fwarning (octave::interpreter &interp, const octave_value_list &args, int nargout)
 
static std::string handle_message (error_fcn f, const char *id, const char *msg, const octave_value_list &args, bool have_fmt)
 
static octave_map init_error_stack (interpreter &interp)
 
static octave_scalar_map init_warning_options (const std::string &state)
 
void interpreter_try (unwind_protect &frame)
 
static bool maybe_extract_message_id (const std::string &caller, const octave_value_list &args, octave_value_list &nargs, std::string &id)
 
void message (const char *name, const char *fmt,...)
 
OCTAVE_NORETURN void panic (const char *fmt,...)
 
void parse_error (const char *fmt,...)
 
void parse_error_with_id (const char *id, const char *fmt,...)
 
octave_value_list set_warning_state (const octave_value_list &args)
 
octave_value_list set_warning_state (const std::string &id, const std::string &state)
 
void usage_with_id (const char *id, const char *fmt,...)
 
void verror (const char *fmt, va_list args)
 
void verror (octave::execution_exception &ee, 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)
 
OCTAVE_NORETURN void vpanic (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_with_id (const char *id, const char *fmt, va_list args)
 
void vwarning (const char *fmt, va_list args)
 
static void vwarning (const char *id, const char *fmt, va_list args)
 
void vwarning_with_id (const char *id, const char *fmt, va_list args)
 
void warning (const char *fmt,...)
 
int warning_enabled (const std::string &id)
 
void warning_with_id (const char *id, const char *fmt,...)
 

Variables

static const char * bt_fieldnames []
 
static const octave_fields bt_fields (bt_fieldnames)
 

Typedef Documentation

◆ error_fcn

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

Definition at line 128 of file error.cc.

Function Documentation

◆ check_state()

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

Definition at line 94 of file error.cc.

References state.

Referenced by error_system::warning_enabled().

◆ defun_usage_message() [1/2]

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

Definition at line 120 of file error.cc.

References error_1().

Referenced by defun_usage_message().

◆ defun_usage_message() [2/2]

void defun_usage_message ( const std::string &  msg)

Helper function for print_usage defined in defun.cc.

Definition at line 1129 of file error.cc.

References defun_usage_message().

◆ disable_warning()

void disable_warning ( const std::string &  id)

Definition at line 1843 of file error.cc.

References __get_error_system__(), and error_system::disable_warning().

Referenced by toggle_warn().

◆ error() [1/2]

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

Definition at line 979 of file error.cc.

References verror().

Referenced by cdef_class::cdef_class(), cdef_method::cdef_method(), cdef_package::cdef_package(), cdef_property::cdef_property(), octave_class::exemplar_info::exemplar_info(), ft_manager::ft_manager(), graphics_toolkit::graphics_toolkit(), hook_function::hook_function(), make_valid_name_options::make_valid_name_options(), octave_class::octave_class(), octave_handle::octave_handle(), octave_legacy_range::octave_legacy_range(), octave_oncleanup::octave_oncleanup(), opengl_renderer::opengl_renderer(), ov_range< T >::ov_range(), tree_decl_command::tree_decl_command(), tree_decl_elt::tree_decl_elt(), mex::~mex(), __require_current_scope__(), bp_table::add_breakpoints_in_function(), add_hdf5_data(), tree_index_expression::append(), mxArray_separate_full::as_octave_value(), mxArray_base_sparse::as_octave_value(), mxArray_separate_sparse::as_octave_value(), octave_map::assign(), octave_base_sparse< T >::assign(), tree_evaluator::assignin(), attempt_type_conversion(), bitop(), bitopxx(), invalid_fcn_handle::call(), octave_map::cat(), octave_cell::cellstr_value(), octave_char_matrix_str::cellstr_value(), interpreter::chdir(), check_access(), check_exception(), load_path::package_info::check_file_type(), check_hdf5_id_value(), cdef_method::cdef_method_rep::check_method(), check_version(), class_fevalStatic(), class_fromName(), class_getConstant(), octave_oncleanup::clone(), Cell::column(), Table::comboBoxCurrentIndexChanged(), octave_class::exemplar_info::compare(), octave_uint64_matrix::complex_matrix_value(), octave_map::concat(), bp_table::condition_valid(), cdef_class::cdef_class_rep::construct_object(), convert(), convert_data(), call_stack::current_function(), bp_table::dbstop_process_map_args(), call_stack::dbupdown(), tree_evaluator::define_parameter_list_from_arg_vector(), DEFMETHOD(), DEFMETHODX(), octave_base_sparse< SparseMatrix >::delete_elements(), octave_complex_matrix::diag(), octave_float_complex_matrix::diag(), octave_float_matrix::diag(), octave_matrix::diag(), dims_to_numel(), symbol_info::display_line(), do_accumarray_minmax(), do_accumarray_minmax_fcn(), do_accumarray_sum(), do_accumdim_sum(), do_bessel(), do_bitpack(), do_cat(), do_class_concat(), do_cumminmax_body(), do_dbstack(), history_system::do_edit_history(), do_fft(), do_fft2(), do_fftn(), do_fread(), do_fwrite(), history_system::do_history(), octave_base_matrix< Cell >::do_index_op(), octave_base_value::do_index_op(), do_merge(), do_minmax_body(), do_num2cell_helper(), do_object2cell(), GLCanvas::do_print(), do_printf_conv(), do_printf_string(), do_rand(), do_repelems(), textscan::do_scan(), do_simple_cellfun(), do_strcmp_fcn(), do_stream_open(), do_tril(), do_trilu(), do_triu(), call_stack::do_who(), octave_class::dotref(), tree_evaluator::echo(), encode_uint_image(), err_2_or_3_dim_plot(), err_assign_conversion_failed(), err_data_conversion(), err_disabled_feature(), err_failed_diagonalization(), err_file_open(), err_indexed_assignment(), err_indexed_cs_list(), err_invalid_conversion(), err_invalid_fcn_handle(), 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(), err_method_access(), err_no_conversion(), err_nonbraced_cs_list_assignment(), err_nonconformant(), err_nonsquare_matrix(), err_not_implemented(), cdef_property::cdef_property_rep::err_property_access(), err_range_invalid(), err_set_invalid(), err_square_matrix_required(), err_string_invalid(), 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(), tree_checker::errmsg(), stream::error(), opengl_tessellator::error(), eval_error(), tree_evaluator::eval_string(), tree_evaluator::evalin(), tree_cell::evaluate(), tree_constant::evaluate(), tree_simple_assignment::evaluate(), tree_evaluator::evaluate_end_expression(), tree_multi_assignment::evaluate_n(), tree_index_expression::evaluate_n(), cdef_method::cdef_method_rep::execute(), octave_classdef_superclass_ref::execute(), tree_evaluator::execute_builtin_function(), tree_evaluator::execute_mex_function(), tree_evaluator::execute_user_function(), tree_evaluator::execute_user_script(), extended_gcd(), F__accumarray_sum__(), F__accumdim_sum__(), F__delaunayn__(), F__dsearchn__(), F__eigs__(), F__event_manager_file_remove__(), F__event_manager_file_renamed__(), F__event_manager_gui_preference__(), F__event_manager_gui_status_update__(), 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__(), F__get_frame__(), F__get_position__(), F__glpk__(), F__go_delete__(), F__go_execute_callback__(), F__go_figure__(), F__go_post_callback__(), F__image_pixel_size__(), F__init_fltk__(), F__init_gnuplot__(), F__is_elevated_process__(), F__lin_interpn__(), F__magick_finfo__(), F__magick_ping__(), F__magick_read__(), F__magick_write__(), F__make_valid_name__(), F__native2unicode__(), F__octave_config_info__(), F__ode15__(), F__pchip_deriv__(), F__player_audioplayer__(), F__player_play__(), F__player_playblocking__(), F__recorder_audiorecorder__(), F__restful_service__(), F__show_figure__(), F__sort_rows_idx__(), F__u8_validate__(), F__unicode2native__(), F__unicode_length__(), F__update_normals__(), F__voronoi__(), F__wmemory__(), F__zoom__(), Faddlistener(), Faddpath(), Faddproperty(), Fairy(), Fall(), Famd(), Fany(), base_lexer::fatal_error(), Fatan2(), Faudiodevinfo(), Faudioinfo(), Faudioread(), Faudiowrite(), Fbalance(), Fbase64_encode(), Fbesselh(), Fbitpack(), Fbitshift(), Fbitunpack(), Fblkmm(), Fbsxfun(), Fbuiltin(), Fcat(), Fccolamd(), Fcell2struct(), Fcellfun(), Fcellslices(), Fchol(), Fcholdelete(), Fcholinsert(), Fcholinv(), Fcholshift(), Fcholupdate(), Fclass(), Fcmdline_options(), Fcolamd(), Fcolloc(), Fcomplex(), Fconv2(), Fconvhulln(), Fconvn(), Fcsymamd(), Fcumsum(), Fdbcont(), Fdblist(), Fdbquit(), Fdbstatus(), Fdbstep(), Fdbstop(), Fdbtype(), Fdellistener(), Fdesktop(), Fdiag(), Fdiff(), Fdlmread(), Fdot(), Fdrawnow(), Feig(), Fellipj(), Feps(), Fetree(), interpreter::feval(), Feval(), Ffcntl(), Ffdisp(), Ffftw(), Ffile_in_loadpath(), Ffile_in_path(), Ffilesep(), Ffilter(), Ffind(), Fflintmax(), Ffork(), Ffunc2str(), Fget(), Fgetgrgid(), Fgetpwuid(), Fgsvd(), Fhex2num(), Fignore_function_time_stamp(), fill_matrix(), filter(), ObjectProxy::finalize(), Find2sub(), cdef_manager::find_class(), find_file_to_load(), cdef_manager::find_package(), Finferiorto(), Fintmax(), Fintmin(), Fis_same_file(), Fisargout(), Fissorted(), Fjsondecode(), Fjsonencode(), Fkill(), Flasterror(), Flink(), Flinspace(), octave_uint64_matrix::float_complex_matrix_value(), octave_uint64_matrix::float_matrix_value(), Flookup(), Flu(), Fluupdate(), Fmat2cell(), Fmatrix_type(), Fmerge(), Fmgorth(), Fmkfifo(), Fmkstemp(), Fmod(), Fmore(), Fnargin(), Fnargout(), Fnorm(), Fnproc(), Fnth_element(), Fnum2hex(), Fnumfields(), fopen_mode_to_ios_mode(), Fopenvar(), Fordqz(), Fordschur(), Fpause(), Fpinv(), Fpopen(), Fpopen2(), Fprod(), Fproperties(), Fpsi(), Fqr(), Fqrdelete(), Fqrinsert(), Fqrshift(), Fqrupdate(), Fquadcc(), Fquit(), Fqz(), Frandg(), Frandp(), Frandperm(), Frats(), Frcond(), url_handle_manager::free(), Fregexprep(), Frem(), Frename(), Frepelems(), Freshape(), Frethrow(), Frmdir(), Frmfield(), Frsf2csf(), Fset(), Fsize(), Fsort(), Fspalloc(), Fsparse(), Fspparms(), Fsprintf(), Fsscanf(), Fstr2func(), Fstrfind(), Fstrncmp(), Fstrncmpi(), Fstrrep(), Fstruct(), Fsub2ind(), Fsum(), Fsuperiorto(), Fsvd(), Fsymamd(), Fsymbfact(), Fsymlink(), Fsystem(), Fterminal_size(), Ftmpfile(), Ftoc(), Ftypecast(), Fumask(), Funlink(), Furlread(), Furlwrite(), Fvec(), Fwaitfor(), Fwarning(), Fwinqueryreg(), cdef_object_scalar::get(), user_fcn_stack_frame::get_access_link(), get_blkmm_dims(), get_dim_vector(), get_dimensions(), stream_list::get_file_number(), get_graphics_object_type(), stream_list::get_info(), get_lines_and_columns(), get_mapper_fun_options(), call_stack::get_new_frame_index_and_links(), ObjectProxy::get_pixels(), cdef_object_scalar::get_property(), get_property_from_handle(), get_region_range(), get_scan_string_data(), get_size(), get_sort_mode_option(), gtk_manager::get_toolkit(), cdef_property::cdef_property_rep::get_value(), glpk(), base_graphics_toolkit::gripe_if_tkit_invalid(), hex2nibble(), hex2num(), ichol_0(), ichol_checkpivot_complex(), ichol_checkpivot_real(), ichol_t(), identity_matrix(), ilu_0(), ilu_crout(), ilu_tp(), octave_class::index_vector(), tm_row_const::init(), initial_class_path(), initialize_jvm(), stream_list::insert(), fcn_info::fcn_info_rep::install_built_in_dispatch(), symbol_table::install_built_in_dispatch(), cdef_class::cdef_class_rep::install_method(), mxArray_base_full::int_to_ov(), invalid_cell2struct_fields_error(), tree_evaluator::is_logically_true(), octave_cell::is_sorted_rows(), octave_cell::is_true(), is_valid_function(), isargout1(), octave_cell::issorted(), Table::itemChanged(), lin_interpn(), load_save_system::load(), octave_base_diag< DMT, MT >::load_ascii(), octave_base_int_matrix< T >::load_ascii(), octave_base_int_scalar< T >::load_ascii(), octave_base_sparse< T >::load_ascii(), octave_bool_matrix::load_ascii(), octave_bool::load_ascii(), octave_cell::load_ascii(), octave_class::load_ascii(), octave_complex::load_ascii(), octave_complex_matrix::load_ascii(), base_anonymous_fcn_handle::load_ascii(), octave_float_scalar::load_ascii(), octave_float_complex::load_ascii(), octave_float_complex_matrix::load_ascii(), octave_float_matrix::load_ascii(), octave_lazy_index::load_ascii(), octave_legacy_range::load_ascii(), octave_base_magic_int< T >::load_ascii(), octave_perm_matrix::load_ascii(), octave_matrix::load_ascii(), octave_scalar::load_ascii(), octave_char_matrix_str::load_ascii(), octave_struct::load_ascii(), octave_scalar_struct::load_ascii(), base_anonymous_fcn_handle::load_binary(), octave_sparse_bool_matrix::load_binary(), octave_cell::load_binary(), octave_sparse_complex_matrix::load_binary(), octave_lazy_index::load_binary(), octave_base_magic_int< T >::load_binary(), octave_sparse_matrix::load_binary(), octave_struct::load_binary(), octave_scalar_struct::load_binary(), base_anonymous_fcn_handle::load_hdf5(), load_inline_fcn(), dynamic_loader::load_mex(), dynamic_loader::load_oct(), load_save_system::load_vars(), tree_expression::lvalue(), tree_index_expression::lvalue(), octave_value_list::make_argv(), cdef_manager::make_class(), stack_frame::make_global(), make_graphics_object(), make_idx_args(), cdef_class::make_meta_class(), stack_frame::make_persistent(), url_handle_manager::make_url_handle(), base_fcn_handle::make_weak_anonymous_handle(), base_fcn_handle::make_weak_nested_handle(), mex::malloc_unmarked(), octave_char_matrix::map(), octave_base_value::map(), script_stack_frame::mark_scope(), user_fcn_stack_frame::mark_scope(), mat2cell_mismatch(), octave_uint64_matrix::matrix_value(), cdef_meta_object_rep::meta_subsref(), cdef_class::cdef_class_rep::meta_subsref(), cdef_method::cdef_method_rep::meta_subsref(), cdef_package::cdef_package_rep::meta_subsref(), mexErrMsgIdAndTxt(), mexErrMsgTxt(), tree_evaluator::mislocked(), interpreter::mislocked(), mk_tmp_hist_file(), tree_evaluator::mlock(), tree_evaluator::munlock(), interpreter::munlock(), octave_base_value::nint_value(), octave_base_value::numeric_assign(), oct_binop_default(), oct_binop_pow(), oct_catop_matrix_struct(), oct_catop_struct_matrix(), oct_unop_default(), oct_unop_hermitian(), oct_unop_transpose(), octave_qhull_dims_ok(), octcellregexp(), output_system::open_diary(), octave_map::optimize_dimensions(), octave_map::orderfields(), octave_scalar_map::orderfields(), package_fromName(), bp_table::parse_dbfunction_params(), textscan::parse_options(), parse_options(), parse_range_spec(), load_save_system::parse_save_options(), symbol_info_list::parse_whos_line_format(), parseTransformationMatrix(), permute_to_correct_order(), ObjectProxy::print(), base_anonymous_fcn_handle::print_raw(), print_usage(), printf_internal(), textscan_format_list::process_conversion(), bp_table::process_id_list(), qp(), raw_mode(), read_binary_data(), read_binary_file_header(), read_file(), 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(), bp_table::remove_all_breakpoints_from_function(), bp_table::remove_breakpoints_from_function(), reparent(), interpreter::require_current_scope(), profiler::reset(), error_system::rethrow_error(), variable_editor_model::retrieve_variable(), push_parser::run(), parser::run(), run_command_and_return_output(), cdef_class::cdef_class_rep::run_constructor(), load_save_system::save(), save_mat5_binary_element(), save_three_d(), load_save_system::save_vars(), octave_base_value::scalar_map_value(), scanf_internal(), script_stack_frame::scope_flag(), user_fcn_stack_frame::scope_flag(), Table::sendCellEditCallback(), set_format_style(), octave_lvalue::set_index(), set_internal_variable(), ft_text_renderer::set_mode(), cdef_object_scalar::set_property(), set_property_in_handle(), script_stack_frame::set_script_offsets_internal(), bp_table::set_stop_flag(), cdef_property::cdef_property_rep::set_value(), error_system::set_warning_option(), octave_map::setfield(), simple_gcd(), octave_class::size(), octave_classdef::size(), octave_cell::sort(), octave_cell::sort_rows_idx(), tree_evaluator::source_file(), octave_value_list::splice(), octave_base_value::squeeze(), tree_identifier::static_workspace_error(), streameuler3d_internal(), octave_char_matrix_str::string_value(), octave_class::string_vector_value(), octave_char_matrix_str::string_vector_value(), cdef_object_array::subsasgn(), cdef_object_scalar::subsasgn(), octave_base_scalar< double >::subsasgn(), octave_base_sparse< T >::subsasgn(), octave_base_value::subsasgn(), octave_cell::subsasgn(), octave_classdef::subsasgn(), octave_struct::subsasgn(), octave_scalar_struct::subsasgn(), octave_class::subsasgn_common(), octave_base_diag< DMT, MT >::subsref(), octave_base_matrix< MT >::subsref(), octave_base_scalar< ST >::subsref(), octave_base_sparse< T >::subsref(), octave_base_value::subsref(), octave_perm_matrix::subsref(), ov_range< T >::subsref(), octave_cell::subsref(), base_fcn_handle::subsref(), cdef_object_array::subsref(), cdef_object_scalar::subsref(), symbol_exist(), opengl_tessellator::tess_error(), textscan_internal(), to_cdef(), to_cdef_ref(), try_cellfun_internal_ops(), validate_property_name(), script_stack_frame::varref(), user_fcn_stack_frame::varref(), scope_stack_frame::varref(), script_stack_frame::varval(), user_fcn_stack_frame::varval(), scope_stack_frame::varval(), tree_evaluator::visit_break_command(), tree_evaluator::visit_complex_for_command(), tree_evaluator::visit_decl_elt(), tree_evaluator::visit_simple_for_command(), tree_evaluator::visit_statement_list(), tree_evaluator::visit_switch_command(), write_file(), write_mat5_array(), xerbla_abort(), xload_ascii(), octave_class::xnumel(), octave_classdef::xnumel(), and xpow().

◆ error() [2/2]

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

Definition at line 994 of file error.cc.

References verror().

◆ error_1() [1/2]

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

Definition at line 86 of file error.cc.

References __get_error_system__().

◆ error_1() [2/2]

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

◆ error_with_cfn()

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

Definition at line 1009 of file error.cc.

References verror_with_cfn().

Referenced by wants_local_change().

◆ error_with_id()

◆ error_with_id_cfn()

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

Definition at line 1039 of file error.cc.

References verror_with_id_cfn().

◆ Fbeep_on_error()

OCTAVE_EXPORT octave_value_list Fbeep_on_error ( octave::interpreter &  interp,
const octave_value_list args,
int  nargout 
)

Definition at line 2128 of file error.cc.

References error_system::beep_on_error().

◆ Fdebug_on_error()

OCTAVE_EXPORT octave_value_list Fdebug_on_error ( octave::interpreter &  interp,
const octave_value_list args,
int  nargout 
)

Definition at line 2150 of file error.cc.

References error_system::debug_on_error().

◆ Fdebug_on_warning()

OCTAVE_EXPORT octave_value_list Fdebug_on_warning ( octave::interpreter &  interp,
const octave_value_list args,
int  nargout 
)

Definition at line 2169 of file error.cc.

References error_system::debug_on_warning().

◆ Ferror()

◆ Flasterr()

OCTAVE_EXPORT octave_value_list Flasterr ( octave::interpreter &  interp,
const octave_value_list args,
int  nargout 
)

◆ Flasterror()

◆ Flastwarn()

OCTAVE_EXPORT octave_value_list Flastwarn ( octave::interpreter &  interp,
const octave_value_list args,
int  nargout 
)

◆ format_message()

static std::string format_message ( const char *  fmt,
va_list  args 
)
static

◆ Frethrow()

◆ Fwarning()

◆ handle_message()

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

◆ init_error_stack()

static octave_map init_error_stack ( interpreter interp)
static

Definition at line 250 of file error.cc.

References tree_evaluator::empty_backtrace(), and interpreter::get_evaluator().

Referenced by Frethrow().

◆ init_warning_options()

static octave_scalar_map init_warning_options ( const std::string &  state)
static

Definition at line 239 of file error.cc.

References octave_scalar_map::setfield(), and state.

Referenced by error_system::initialize_default_warning_state().

◆ interpreter_try()

◆ maybe_extract_message_id()

static bool maybe_extract_message_id ( const std::string &  caller,
const octave_value_list args,
octave_value_list nargs,
std::string &  id 
)
static

Definition at line 192 of file error.cc.

References octave_value_list::length(), and octave_value_list::resize().

Referenced by Ferror(), and Fwarning().

◆ message()

◆ panic()

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

Definition at line 1118 of file error.cc.

References vpanic().

Referenced by symbol_table::alias_built_in_function().

◆ parse_error()

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

Definition at line 1084 of file error.cc.

References vparse_error().

Referenced by push_parser::run(), and parser::run().

◆ parse_error_with_id()

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

Definition at line 1099 of file error.cc.

References vparse_error_with_id().

◆ set_warning_state() [1/2]

octave_value_list set_warning_state ( const octave_value_list args)

Definition at line 1827 of file error.cc.

References __get_interpreter__(), and Fwarning().

◆ set_warning_state() [2/2]

octave_value_list set_warning_state ( const std::string &  id,
const std::string &  state 
)

Definition at line 1814 of file error.cc.

References __get_interpreter__(), Fwarning(), and state.

Referenced by toggle_warn().

◆ usage_with_id()

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

Definition at line 964 of file error.cc.

References vusage_with_id().

◆ verror() [1/2]

void verror ( const char *  fmt,
va_list  args 
)

Definition at line 973 of file error.cc.

References error_1().

Referenced by error().

◆ verror() [2/2]

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

Definition at line 988 of file error.cc.

References error_1().

◆ verror_with_cfn()

void verror_with_cfn ( const char *  fmt,
va_list  args 
)

Definition at line 1003 of file error.cc.

References error_1().

Referenced by error_with_cfn(), and lo_error_handler().

◆ verror_with_id()

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

Definition at line 1018 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 1033 of file error.cc.

References error_1().

Referenced by error_with_id_cfn(), and lo_error_with_id_handler().

◆ vmessage()

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

Definition at line 933 of file error.cc.

References format_message(), message(), and octave_diary.

Referenced by message().

◆ vpanic()

OCTAVE_NORETURN void vpanic ( const char *  fmt,
va_list  args 
)

Definition at line 1109 of file error.cc.

References __get_error_system__().

Referenced by panic().

◆ vparse_error()

void vparse_error ( const char *  fmt,
va_list  args 
)

Definition at line 1078 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 1093 of file error.cc.

References error_1().

Referenced by parse_error_with_id().

◆ vusage_with_id()

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

Definition at line 956 of file error.cc.

References __get_error_system__().

Referenced by usage_with_id().

◆ vwarning() [1/2]

void vwarning ( const char *  fmt,
va_list  args 
)

Definition at line 1048 of file error.cc.

References vwarning().

◆ vwarning() [2/2]

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

Definition at line 112 of file error.cc.

References __get_error_system__().

Referenced by vwarning(), vwarning_with_id(), warning(), and warning_with_id().

◆ vwarning_with_id()

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

Definition at line 1063 of file error.cc.

References vwarning().

Referenced by mexWarnMsgIdAndTxt().

◆ warning()

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

Definition at line 1054 of file error.cc.

References vwarning().

Referenced by documentation::documentation(), documentation_bookmarks::documentation_bookmarks(), octave_oncleanup::octave_oncleanup(), load_path::add(), octave_user_code::cache_function_text(), octave_oncleanup::call_object_destructor(), stack_frame::clear_values(), files_dock_widget::contextmenu_delete(), convert_cdata(), octave_float_scalar::convert_to_str_internal(), octave_float_matrix::convert_to_str_internal(), octave_base_magic_int< T >::convert_to_str_internal(), octave_matrix::convert_to_str_internal(), octave_sparse_matrix::convert_to_str_internal(), octave_scalar::convert_to_str_internal(), octave_base_int_scalar< T >::convert_to_str_internal(), opengl_texture::create(), daspk_user_function(), daspk_user_jacobian(), dasrt_user_cf(), dasrt_user_f(), dasrt_user_j(), dassl_user_function(), dassl_user_jacobian(), ft_manager::do_get_font(), do_minmax_body(), do_regexp_ptn_string_escapes(), do_regexp_rep_string_escapes(), load_save_system::do_save(), do_string_escapes(), call_stack::do_who(), opengl_renderer::draw(), opengl_renderer::draw_axes(), opengl_renderer::draw_patch(), opengl_renderer::draw_scatter(), opengl_renderer::draw_texture_image(), load_save_system::dump_octave_core(), eigs_callback::eigs_func(), event_manager::enable(), F__magick_ping__(), Fbalance(), Fclear(), Fconvhulln(), Fdesktop(), Fformat(), Ffreport(), Fgsvd(), Flookup(), Fpause(), Fquadcc(), mex::free(), free_qhull_memory(), mex::free_value(), Frmpath(), Fschur(), Fspparms(), Fsum(), Ftic(), Fwaitfor(), ft_text_renderer::ft_font::get_face(), octave_user_code::get_file_info(), load_path::dir_info::get_file_list(), mex::global_mark(), mex::global_unmark(), base_lexer::handle_end_of_input(), hdf5_read_next_data_internal(), opengl_renderer::init_gl_context(), load_path::dir_info::initialize(), initialize_error_handlers(), fcn_info::fcn_info_rep::install_built_in_dispatch(), load_save_system::load(), octave_class::load_ascii(), octave_class::load_binary(), octave_class::load_hdf5(), octave_base_int_scalar< octave_uint64 >::load_hdf5_internal(), load_save_system::load_vars(), lsode_user_function(), lsode_user_jacobian(), base_parser::make_classdef_property(), base_parser::make_decl_command(), opengl_renderer::make_marker_list(), mex::mark(), mex::mark_foreign(), maybe_warn_exclusive(), tree::meets_bp_condition(), mexWarnMsgTxt(), tree_evaluator::mlock(), tree_evaluator::munlock(), bp_table::parse_dbfunction_params(), load_save_system::parse_save_options(), quad_float_user_function(), quad_user_function(), read_file(), textscan::read_format_once(), JVMArgs::read_java_opts(), octave_class::reconstruct_exemplar(), type_info::register_assign_op(), type_info::register_assignany_op(), type_info::register_cat_op(), type_info::register_non_const_unary_op(), type_info::register_pref_assign_conv(), type_info::register_type(), type_info::register_unary_class_op(), type_info::register_unary_op(), type_info::register_widening_op(), documentation::registerDoc(), cdef_object_rep::release(), load_path::remove(), load_save_system::save(), octave_oncleanup::save_ascii(), octave_complex_diag_matrix::save_binary(), octave_complex_matrix::save_binary(), octave_sparse_complex_matrix::save_binary(), octave_oncleanup::save_binary(), octave_diag_matrix::save_binary(), octave_matrix::save_binary(), octave_sparse_matrix::save_binary(), octave_complex_matrix::save_hdf5(), octave_sparse_complex_matrix::save_hdf5(), octave_oncleanup::save_hdf5(), octave_matrix::save_hdf5(), octave_sparse_matrix::save_hdf5(), save_mat_ascii_data(), save_three_d(), load_save_system::save_vars(), opengl_selector::select(), ft_text_renderer::set_color(), set_DASPK_options(), set_DASRT_options(), set_DASSL_options(), set_internal_variable(), set_LSODE_options(), set_Quad_options(), base_parser::set_stmt_print_flag(), cdef_property::cdef_property_rep::set_value(), shortcut_manager::shortcut_dialog_finished(), show_DASPK_options(), show_DASRT_options(), show_DASSL_options(), show_LSODE_options(), show_Quad_options(), base_parser::start_function(), subdirs_modified(), base_fcn_handle::unimplemented(), mex::unmark(), mex::unmark_foreign(), ButtonControl::update(), PopupMenuControl::update(), ft_text_renderer::visit(), tree_evaluator::visit_arguments_block(), warn_disabled_feature(), warn_empty_arg(), warn_invalid_value_specified(), event_queue_safe::warn_unhandled_exception(), warn_wrong_type_arg(), documentation_bookmarks::write_bookmarks(), write_file(), and xpow().

◆ warning_enabled()

int warning_enabled ( const std::string &  id)

Definition at line 1835 of file error.cc.

References __get_error_system__(), and error_system::warning_enabled().

Referenced by toggle_warn().

◆ warning_with_id()

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

Definition at line 1069 of file error.cc.

References vwarning().

Referenced by gnuplot_graphics_toolkit::gnuplot_graphics_toolkit(), load_path::add(), load_path::package_info::add_to_fcn_map(), tree_evaluator::check_autoload_file(), check_dimensions(), check_hdf5_types(), dynamic_loader::clear(), dynamic_loader::clear_function(), opengl_renderer::draw_axes_children(), tree_evaluator::execute_range_loop(), F__eigs__(), Faddpath(), Faudiodevinfo(), Faudiowrite(), Flu(), Fpow2(), Fstr2func(), Fwarning(), ov_range< T >::index_vector(), initialize_error_handlers(), stack_frame::install_variable(), cdef_object::map_value(), tree_binary_expression::matlab_style_short_circuit_warning(), maybe_initialize_magick(), base_parser::maybe_warn_assign_as_truth_value(), maybe_warn_invalid_field_name(), base_parser::maybe_warn_missing_semi(), base_lexer::maybe_warn_separator_insert(), maybe_warn_string_concat(), base_parser::maybe_warn_variable_switch_label(), latex_renderer::ok(), textscan_format_list::parse_char_class(), ft_text_renderer::process_character(), latex_renderer::read_image(), read_mat5_binary_element(), read_mat5_binary_file_header(), load_path::set(), sqrtm_utri_inplace(), base_parser::start_function(), octave_char_matrix_str::string_value(), load_path::update(), load_path::dir_info::update(), validate_property_name(), warn_array_as_logical(), warn_complex_cmp(), warn_data_file_in_path(), base_lexer::warn_deprecated_syntax(), warn_dim_too_large(), warn_empty_index(), warn_glyph_render(), latex_renderer::warn_helper(), warn_implicit_conversion(), base_lexer::warn_language_extension(), base_fcn_handle::warn_load(), octave_base_value::warn_load(), warn_logical_conversion(), warn_missing_glyph(), base_fcn_handle::warn_save(), octave_base_value::warn_save(), write_mat5_array(), and latex_renderer::write_tex_file().

Variable Documentation

◆ bt_fieldnames

const char* bt_fieldnames[]
static
Initial value:
=
{ "file", "name", "line", "column", nullptr }

Definition at line 366 of file error.cc.

◆ bt_fields

const octave_fields bt_fields(bt_fieldnames) ( bt_fieldnames  )
static