GNU Octave  4.2.1
A high-level interpreted language, primarily intended for numerical computations, mostly compatible with Matlab
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Classes | Typedefs | Functions | Variables
error.cc File Reference
#include <cstdarg>
#include <cstring>
#include <iomanip>
#include <iostream>
#include <sstream>
#include <string>
#include "call-stack.h"
#include "debug.h"
#include "defun.h"
#include "error.h"
#include "input.h"
#include "octave.h"
#include "pager.h"
#include "ovl.h"
#include "oct-map.h"
#include "utils.h"
#include "ov.h"
#include "ov-usr-fcn.h"
#include "pt-eval.h"
#include "pt-pr-code.h"
#include "pt-stmt.h"
#include "interpreter.h"
#include "unwind-prot.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)
 
static octave::execution_exception make_execution_exception (const char *who)
 
static std::list
< error_stack_frame
make_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

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

Definition at line 957 of file error.cc.

Function Documentation

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

Definition at line 639 of file error.cc.

Referenced by warning_enabled().

void defun_usage_message ( const std::string msg)

Definition at line 952 of file error.cc.

References defun_usage_message_1().

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

Definition at line 943 of file error.cc.

References error_1(), and octave_stdout.

Referenced by defun_usage_message().

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

Definition at line 570 of file error.cc.

References verror().

Referenced by QtHandles::__init__(), add_hdf5_data(), base_graphics_object::adopt(), tree_index_expression::append(), tree_colon_expression::append(), mxArray_sparse::as_octave_value(), octave_base_sparse< T >::assign(), octave_map::assign(), octave_value::assign(), bitop(), bitopxx(), 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(), load_path::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(), color_values::color_values(), Cell::column(), octave_class::exemplar_info::compare(), OCTAVE_VALUE_INT_MATRIX_T::complex_matrix_value(), octave_map::concat(), bp_table::condition_valid(), octave_link::connect_link(), cdef_class::cdef_class_rep::construct_object(), convert_data(), convert_to_string(), property::create(), color_property::current_value(), double_radio_property::current_value(), bp_table::dbstop_process_map_args(), decode_subscripts(), decompose_binary_op(), base_graphics_object::defaults(), tree_parameter_list::define_from_arg_vector(), DEFUN(), octave_base_sparse< T >::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(), bp_table::do_add_breakpoint(), do_bessel(), do_colon_op(), do_edit_history(), gh_manager::do_execute_callback(), do_fft(), do_fft2(), do_fftn(), cdef_manager::do_find_class(), cdef_manager::do_find_package(), symbol_table::scope_id_cache::do_free(), ch_manager::do_free(), gh_manager::do_free(), do_fwrite(), octave_stream_list::do_get_file_number(), octave_stream_list::do_get_info(), gtk_manager::do_get_toolkit(), do_history(), octave_base_sparse< T >::do_index_op(), octave_base_value::do_index_op(), octave_stream_list::do_insert(), do_isglobal(), octave_dynamic_loader::do_load_mex(), octave_dynamic_loader::do_load_oct(), ch_manager::do_make_curl_handle(), gh_manager::do_make_graphics_handle(), do_minmax_body(), octave_builtin::do_multi_index_op(), octave_mex_function::do_multi_index_op(), octave_fcn_handle::do_multi_index_op(), octave_user_script::do_multi_index_op(), octave_base_value::do_multi_index_op(), octave_user_function::do_multi_index_op(), octave_classdef_superclass_ref::do_multi_index_op(), octave_value::do_non_const_unary_op(), do_printf_conv(), do_printf_string(), do_rand(), bp_table::do_remove_all_breakpoints_in_file(), bp_table::do_remove_breakpoint(), 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(), symbol_table::do_update_nest(), do_who(), octave_class::dotref(), double_radio_property::double_value(), dqelg(), err_2_or_3_dim_plot(), err_assign_conversion_failed(), err_bad_result(), err_binary_op(), err_binary_op_conv(), err_cat_op(), err_cat_op_conv(), err_data_conversion(), err_disabled_feature(), err_failed_diagonalization(), err_indexed_assignment(), err_indexed_cs_list(), err_invalid_conversion(), 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(), 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(), tree_checker::errmsg(), octave::opengl_tesselator::error(), octave_stream::error(), tree_colon_expression::eval_error(), eval_error(), cdef_method::cdef_method_rep::execute(), octave_class::exemplar_info::exemplar_info(), extended_gcd(), extract_function(), F__dsearchn__(), F__dump_symtab_info__(), 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__lin_interpn__(), F__magick_read__(), F__pchip_deriv__(), F__zoom__(), Fbalance(), Fcolloc(), Fconv2(), Fdrawnow(), Feig(), Fellipj(), Ffilter(), Ffunctions(), Fget(), filter(), OCTAVE_VALUE_INT_MATRIX_T::float_complex_matrix_value(), OCTAVE_VALUE_INT_MATRIX_T::float_matrix_value(), Fmgorth(), Fmore(), Fnproc(), Fnumfields(), fopen_mode_to_ios_mode(), for(), Frcond(), symbol_table::free_scope(), Fspparms(), Fsvd(), octave::ft_manager::ft_manager(), G__delaunayn__(), G__eigs__(), G__glpk__(), G__init_fltk__(), G__init_gnuplot__(), G__osmesa_print__(), G__voronoi__(), Gamd(), Gaudiodevinfo(), Gaudioread(), Gccolamd(), Gchol(), Gcolamd(), Gconvhulln(), base_property::get(), cdef_object_scalar::get(), base_graphics_object::get(), root_figure::get_default(), base_graphics_object::get_defaults(), base_graphics_object::get_defaults_list(), get_dim_vector(), base_properties::get_dynamic(), root_figure::get_factory_default(), base_graphics_object::get_factory_defaults(), base_graphics_object::get_factory_defaults_list(), get_graphics_object_type(), base_graphics_object::get_handle(), symbol_table::get_instance(), get_lines_and_columns(), get_mapper_fun_options(), base_graphics_object::get_parent(), base_properties::get_property_dynamic(), get_region_range(), get_size(), base_graphics_object::get_toolkit(), get_user_input(), cdef_property::cdef_property_rep::get_value(), 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(), 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_java(), initialize_jvm(), cdef_class::cdef_class_rep::install_method(), octave_errno::instance_ok(), octave_value_typeinfo::instance_ok(), octave_dynamic_loader::instance_ok(), bp_table::instance_ok(), ch_manager::instance_ok(), octave_pager_stream::instance_ok(), octave_shlib_list::instance_ok(), symbol_table::scope_id_cache::instance_ok(), octave_call_stack::instance_ok(), octave::ft_manager::instance_ok(), shortcut_manager::instance_ok(), resource_manager::instance_ok(), display_info::instance_ok(), octave_diary_stream::instance_ok(), octave::interrupt_manager::instance_ok(), octave_stream_list::instance_ok(), load_path::instance_ok(), cdef_manager::instance_ok(), gtk_manager::instance_ok(), gh_manager::instance_ok(), mxArray_number::int_to_ov(), mxArray_base::invalid_type_error(), tree_expression::is_logically_true(), octave_cell::is_sorted(), octave_cell::is_sorted_rows(), octave_cell::is_true(), is_valid_function(), Java_org_octave_Octave_doInvoke(), lin_interpn(), octave_base_int_matrix< T >::load_ascii(), octave_struct::load_ascii(), octave_fcn_handle::load_ascii(), octave_base_int_scalar< T >::load_ascii(), octave_float_complex_matrix::load_ascii(), octave_char_matrix_str::load_ascii(), octave_complex_matrix::load_ascii(), octave_cell::load_ascii(), octave_base_sparse< T >::load_ascii(), octave_float_complex::load_ascii(), octave_complex::load_ascii(), octave_class::load_ascii(), octave_lazy_index::load_ascii(), octave_float_matrix::load_ascii(), octave_base_diag< DMT, MT >::load_ascii(), octave_perm_matrix::load_ascii(), octave_bool_matrix::load_ascii(), octave_matrix::load_ascii(), octave_bool::load_ascii(), octave_scalar::load_ascii(), octave_float_scalar::load_ascii(), octave_scalar_struct::load_ascii(), octave_range::load_ascii(), octave_sparse_bool_matrix::load_binary(), octave_struct::load_binary(), octave_sparse_complex_matrix::load_binary(), octave_fcn_handle::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(), tree_expression::lvalue(), tree_index_expression::lvalue(), octave_value_list::make_argv(), make_class(), make_fcn_handle(), make_idx_args(), cdef_class::make_meta_class(), mex::malloc_unmarked(), octave_char_matrix::map(), octave_base_value::map(), symbol_table::symbol_record::symbol_record_rep::mark_global(), base_graphics_object::mark_modified(), symbol_table::symbol_record::symbol_record_rep::mark_persistent(), OCTAVE_VALUE_INT_MATRIX_T::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(), mk_tmp_hist_file(), octave_base_value::nint_value(), octave_class::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(), tree_jit::optimize(), octave_map::optimize_dimensions(), octave_scalar_map::orderfields(), octave_map::orderfields(), base_graphics_object::override_defaults(), package_fromName(), parse_dbfunction_params(), parse_fcn_file(), parse_options(), octave::textscan::parse_options(), symbol_info_list::parse_whos_line_format(), pattern(), permute_to_correct_order(), symbol_table::pop_context(), print_usage(), octave::textscan_format_list::process_conversion(), symbol_table::push_context(), octave::base_lexer::push_start_state(), qelg(), qp(), raw_help_from_docstrings_file(), raw_mode(), 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(), base_graphics_object::remove_child(), children_property::renumber(), reparent(), base_graphics_object::reparent(), profile_data_accumulator::reset(), rethrow_error(), color_property::rgb(), octave::parser::run(), octave::push_parser::run(), run_command_and_return_output(), cdef_class::cdef_class_rep::run_constructor(), tree_cell::rvalue(), tree_compound_binary_expression::rvalue(), tree_matrix::rvalue(), tree_simple_assignment::rvalue(), tree_fcn_handle::rvalue(), tree_decl_elt::rvalue(), tree_constant::rvalue(), tree_colon_expression::rvalue(), tree_expression::rvalue(), tree_binary_expression::rvalue(), tree_prefix_expression::rvalue(), tree_anon_fcn_handle::rvalue(), tree_multi_assignment::rvalue(), tree_postfix_expression::rvalue(), tree_boolean_expression::rvalue(), tree_cell::rvalue1(), tree_simple_assignment::rvalue1(), tree_expression::rvalue1(), tree_colon_expression::rvalue1(), save_mat5_binary_element(), save_three_d(), octave_base_value::scalar_map_value(), base_scaler::scale(), property_list::set(), base_graphics_object::set(), graphics_object::set(), root_figure::properties::set(), figure::properties::set(), axes::properties::set(), line::properties::set(), text::properties::set(), image::properties::set(), light::properties::set(), patch::properties::set(), surface::properties::set(), hggroup::properties::set(), uimenu::properties::set(), uicontextmenu::properties::set(), uicontrol::properties::set(), uibuttongroup::properties::set(), uipanel::properties::set(), uitoolbar::properties::set(), uipushtool::properties::set(), uitoggletool::properties::set(), figure::properties::set___graphics_toolkit__(), base_graphics_object::set_defaults(), base_properties::set_dynamic(), octave_fcn_handle::set_fcn(), set_format_style(), base_properties::set_from_list(), base_graphics_object::set_from_list(), octave_lvalue::set_index(), octave::ft_text_renderer::set_mode(), figure::properties::set_papertype(), figure::properties::set_paperunits(), base_properties::set_parent(), symbol_table::set_scope(), symbol_table::set_scope_and_context(), uicontrol::properties::set_style(), axes::properties::set_text_child(), cdef_property::cdef_property_rep::set_value(), octave_map::setfield(), simple_gcd(), octave_class::size(), snarf_file(), octave_cell::sort(), octave_cell::sort_rows_idx(), sparse(), octave_value_list::splice(), octave_base_value::squeeze(), 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< ST >::subsasgn(), octave_base_diag< DMT, MT >::subsasgn(), octave_struct::subsasgn(), octave_base_matrix< MT >::subsasgn(), octave_base_sparse< T >::subsasgn(), octave_cell::subsasgn(), octave_java::subsasgn(), octave_scalar_struct::subsasgn(), octave_base_value::subsasgn(), cdef_object_array::subsasgn(), cdef_object_scalar::subsasgn(), octave_classdef::subsasgn(), octave_class::subsasgn_common(), octave_perm_matrix::subsref(), octave_mex_function::subsref(), octave_base_scalar< ST >::subsref(), octave_base_diag< DMT, MT >::subsref(), octave_builtin::subsref(), octave_base_matrix< MT >::subsref(), octave_fcn_handle::subsref(), octave_base_sparse< T >::subsref(), octave_cell::subsref(), octave_java::subsref(), octave_range::subsref(), octave_user_script::subsref(), octave_base_value::subsref(), octave_user_function::subsref(), cdef_object_array::subsref(), cdef_object_scalar::subsref(), symbol_exist(), octave::opengl_tesselator::tess_error(), to_cdef(), to_cdef_ref(), tree_funcall::tree_funcall(), try_cellfun_internal_ops(), octave_value::unary_op_to_assign_op(), unbox(), base_scaler::unscale(), base_graphics_object::update_axis_limits(), figure::properties::update_papersize(), tree_parameter_list::validate(), radio_values::validate(), color_values::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_complex_for_command(), 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().

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

Definition at line 585 of file error.cc.

References verror().

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
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 555 of file error.cc.

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

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,
  ... 
)

Definition at line 630 of file error.cc.

References verror_with_id_cfn().

OCTAVE_EXPORT octave_value_list Frethrow ( const octave_value_list args,
int   
)

Referenced by install_error_fcns().

octave_value_list Fsprintf ( const octave_value_list ,
int   
)

Referenced by 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
static octave_map initialize_last_error_stack ( void  )
static

Definition at line 143 of file error.cc.

References octave_call_stack::empty_backtrace().

Referenced by verror().

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

Definition at line 132 of file error.cc.

References octave_scalar_map::setfield().

static octave::execution_exception make_execution_exception ( const char *  who)
static

Definition at line 339 of file error.cc.

References pr_where(), and retval.

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

static std::list<error_stack_frame> make_stack_frame_list ( const octave_map stack)
static
static void maybe_enter_debugger ( octave::execution_exception &  e,
bool  show_stack_trace = false 
)
static
void message ( const char *  name,
const char *  fmt,
  ... 
)
void message_with_id ( const char *  name,
const char *  id,
const char *  fmt,
  ... 
)

Definition at line 446 of file error.cc.

References vmessage_with_id().

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

Definition at line 931 of file error.cc.

References verror().

Referenced by symbol_table::alias_built_in_function(), error_1(), and pr_where_2().

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

Definition at line 818 of file error.cc.

References vparse_error().

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

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

Definition at line 833 of file error.cc.

References vparse_error_with_id().

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

Definition at line 263 of file error.cc.

References pr_where_2().

Referenced by pr_where().

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

Definition at line 235 of file error.cc.

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

Referenced by pr_where_1().

void reset_error_handler ( void  )

Definition at line 124 of file error.cc.

Referenced by get_debug_input().

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

Definition at line 842 of file error.cc.

References error_1().

static OCTAVE_NORETURN void rethrow_error ( const std::string id,
const std::string msg,
const octave_map stack 
)
static
static void rethrow_error_1 ( const char *  id,
const char *  fmt,
  ... 
)
static

Definition at line 882 of file error.cc.

References verror().

Referenced by rethrow_error().

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

Definition at line 482 of file error.cc.

References usage_1().

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

Definition at line 456 of file error.cc.

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

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

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

Definition at line 468 of file error.cc.

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

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

Definition at line 497 of file error.cc.

References vusage_with_id().

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 
)
static
void verror ( const char *  fmt,
va_list  args 
)

Definition at line 564 of file error.cc.

References error_1().

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

Definition at line 579 of file error.cc.

References error_1().

void verror_with_cfn ( const char *  fmt,
va_list  args 
)

Definition at line 594 of file error.cc.

References error_1().

Referenced by error_with_cfn(), and lo_error_handler().

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

Definition at line 609 of file error.cc.

References error_1().

Referenced by error_with_id(), and mexErrMsgIdAndTxt().

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

Definition at line 624 of file error.cc.

References error_1().

Referenced by error_with_id_cfn(), and lo_error_with_id_handler().

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

Definition at line 424 of file error.cc.

References verror().

Referenced by message().

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

Definition at line 439 of file error.cc.

References verror().

Referenced by message_with_id().

void vparse_error ( const char *  fmt,
va_list  args 
)

Definition at line 812 of file error.cc.

References error_1().

Referenced by parse_error().

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

Definition at line 827 of file error.cc.

References error_1().

Referenced by parse_error_with_id().

void vusage ( const char *  fmt,
va_list  args 
)

Definition at line 476 of file error.cc.

References usage_1().

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

Definition at line 491 of file error.cc.

References usage_1().

Referenced by usage_with_id().

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

Definition at line 782 of file error.cc.

References warning_1().

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

Definition at line 797 of file error.cc.

References warning_1().

Referenced by mexWarnMsgIdAndTxt(), and warning_with_id().

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

Definition at line 788 of file error.cc.

References vwarning().

Referenced by file_editor_tab::check_valid_codec(), files_dock_widget::contextmenu_delete(), convert_cdata(), octave_base_int_matrix< T >::convert_to_str_internal(), octave_base_int_scalar< T >::convert_to_str_internal(), octave_sparse_matrix::convert_to_str_internal(), octave_float_matrix::convert_to_str_internal(), octave_matrix::convert_to_str_internal(), octave_scalar::convert_to_str_internal(), octave_float_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(), load_path::do_add(), 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(), octave_value_typeinfo::do_register_assign_op(), octave_value_typeinfo::do_register_assignany_op(), octave_value_typeinfo::do_register_binary_class_op(), octave_value_typeinfo::do_register_binary_op(), octave_value_typeinfo::do_register_cat_op(), octave_value_typeinfo::do_register_non_const_unary_op(), octave_value_typeinfo::do_register_pref_assign_conv(), octave_value_typeinfo::do_register_unary_class_op(), octave_value_typeinfo::do_register_unary_op(), octave_value_typeinfo::do_register_widening_op(), load_path::do_remove(), do_save(), do_who(), 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(), F__profiler_data__(), F__profiler_reset__(), Fbalance(), octave::base_lexer::flex_yyleng(), for(), mex::free(), mex::free_value(), octave::base_parser::frob_function(), Fschur(), Fspparms(), G__delaunayn__(), G__eigs__(), G__voronoi__(), Gaudiodevinfo(), Gconvhulln(), axes::properties::get_axis_limits(), octave::ft_text_renderer::ft_font::get_face(), get_fcn_files(), load_path::dir_info::get_file_list(), base_graphics_object::get_properties(), 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(), load_path::dir_info::initialize(), initialize_error_handlers(), octave_class::load_ascii(), octave_class::load_binary(), octave_class::load_hdf5(), lsode_user_function(), lsode_user_jacobian(), octave::base_parser::make_decl_command(), octave::opengl_renderer::make_marker_list(), mex::mark(), mex::mark_foreign(), tree::meets_bp_condition(), mexWarnMsgTxt(), octave_oncleanup::octave_oncleanup(), 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_oncleanup::save_ascii(), octave_java::save_ascii(), octave_oncleanup::save_binary(), octave_java::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_java::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(), set_DASPK_options(), set_DASRT_options(), set_DASSL_options(), set_LSODE_options(), set_Quad_options(), octave::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(), octave::gui_application::start_gui_p(), mex::unmark(), mex::unmark_foreign(), QtHandles::ButtonControl::update(), QtHandles::PopupMenuControl::update(), load_path::dir_info::update(), octave::ft_text_renderer::visit(), warn_dim_too_large(), warn_disabled_feature(), warn_empty_arg(), warn_invalid_value_specified(), event_queue_safe::warn_unhandled_exception(), warn_wrong_type_arg(), write_mat5_array(), xpow(), and octave_oncleanup::~octave_oncleanup().

static void warning_1 ( const char *  id,
const char *  fmt,
va_list  args 
)
static
int warning_enabled ( const std::string id)
void warning_with_id ( const char *  id,
const char *  fmt,
  ... 
)

Definition at line 803 of file error.cc.

References vwarning_with_id().

Referenced by load_path::loader::add_to_fcn_map(), check_hdf5_types(), clear(), load_path::do_add(), do_clear_function(), load_path::do_set(), radio_property::do_set(), color_property::do_set(), double_radio_property::do_set(), octave::opengl_renderer::draw_all_lights(), octave::base_parser::frob_function(), patch::properties::get_normalmode(), surface::properties::get_normalmode(), gripe_data_file_in_path(), gripe_divide_by_zero(), gripe_implicit_conversion(), gripe_logical_conversion(), gripe_warn_complex_cmp(), if(), octave_range::index_vector(), initialize_error_handlers(), tree_parameter_list::initialize_undefined_elements(), cdef_object::map_value(), tree_binary_expression::matlab_style_short_circuit_warning(), maybe_initialize_magick(), octave::base_parser::maybe_warn_assign_as_truth_value(), maybe_warn_invalid_field_name(), octave::base_parser::maybe_warn_missing_semi(), maybe_warn_string_concat(), octave::base_parser::maybe_warn_variable_switch_label(), normalize_fopen_mode(), octave_lex(), octave::textscan_format_list::parse_char_class(), patch::properties::set_normalmode(), surface::properties::set_normalmode(), sqrtm_utri_inplace(), axes::properties::update_xaxislocation(), axes::properties::update_yaxislocation(), validate_property_name(), warn_array_as_logical(), warn_complex_cmp(), warn_data_file_in_path(), warn_divide_by_zero(), warn_glyph_render(), warn_implicit_conversion(), octave::base_lexer::warn_language_extension_continuation(), octave_base_value::warn_load(), warn_logical_conversion(), warn_missing_glyph(), and octave_base_value::warn_save().

Variable Documentation

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

Definition at line 106 of file error.cc.

Referenced by jit_typeinfo::jit_typeinfo().

int in_try_catch = 0

Definition at line 115 of file error.cc.

Referenced by octave::tree_evaluator::visit_try_catch_command().

bool Vbacktrace_on_warning = true
static

Definition at line 73 of file error.cc.

bool Vbeep_on_error = false
static

Definition at line 56 of file error.cc.

Referenced by verror().

bool Vdebug_on_caught = false
bool Vdebug_on_error = false
bool Vdebug_on_warning = false
std::string Vlast_error_id
static

Definition at line 94 of file error.cc.

Referenced by rethrow_error(), and verror().

std::string Vlast_error_message
static

Definition at line 85 of file error.cc.

Referenced by rethrow_error(), and verror().

octave_map Vlast_error_stack
static

Definition at line 97 of file error.cc.

std::string Vlast_warning_id
static

Definition at line 91 of file error.cc.

Referenced by vwarning().

std::string Vlast_warning_message
static

Definition at line 88 of file error.cc.

Referenced by vwarning().

bool Vquiet_warning = false
static

Definition at line 79 of file error.cc.

bool Vverbose_warning
static

Definition at line 76 of file error.cc.

octave_map warning_options
static

Definition at line 82 of file error.cc.