#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 "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"
Go to the source code of this file.
Namespaces | |
octave | |
Typedefs | |
typedef void(* | error_fun) (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 &e, 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 &e, 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_fun f, const char *id, const char *msg, const octave_value_list &args, bool have_fmt) |
static octave_map | octave::init_error_stack (interpreter &interp) |
static octave_scalar_map | octave::init_warning_options (const std::string &state) |
void | interpreter_try (octave::unwind_protect &frame) |
std::string | last_error_id (void) |
std::string | last_error_message (void) |
octave_map | last_error_stack (void) |
std::string | last_warning_id (void) |
std::string | last_warning_message (void) |
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 &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) |
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 * | octave::bt_fieldnames [] |
static const octave_fields | octave::bt_fields (bt_fieldnames) |
int | error_state = 0 |
|
static |
Definition at line 93 of file error.cc.
References octave::state.
Referenced by octave::error_system::warning_enabled().
|
static |
void defun_usage_message | ( | const std::string & | msg | ) |
Helper function for print_usage defined in defun.cc.
Definition at line 1123 of file error.cc.
References defun_usage_message().
void disable_warning | ( | const std::string & | id | ) |
Definition at line 1803 of file error.cc.
References octave::__get_error_system__(), and octave::error_system::disable_warning().
Referenced by octave::interpreter::maximum_braindamage(), and toggle_warn().
void error | ( | const char * | fmt, |
... | |||
) |
Definition at line 968 of file error.cc.
References verror().
Referenced by octave::cdef_class::cdef_class(), octave::cdef_method::cdef_method(), octave::cdef_package::cdef_package(), octave::cdef_property::cdef_property(), color_values::color_values(), octave_class::exemplar_info::exemplar_info(), octave::ft_manager::ft_manager(), octave::graphics_toolkit::graphics_toolkit(), hook_function::hook_function(), octave_class::octave_class(), octave_handle::octave_handle(), octave_oncleanup::octave_oncleanup(), octave_range::octave_range(), octave::opengl_renderer::opengl_renderer(), string_array_property::string_array_property(), octave::tree_decl_command::tree_decl_command(), octave::tree_decl_elt::tree_decl_elt(), mex::~mex(), octave::__get_interpreter__(), octave::__require_current_scope__(), octave::bp_table::add_breakpoint(), add_hdf5_data(), octave::tree_index_expression::append(), mxArray_sparse::as_octave_value(), octave_map::assign(), octave::tree_evaluator::assignin(), attempt_type_conversion(), bitop(), bitopxx(), octave::invalid_fcn_handle::call(), octave_map::cat(), octave_cell::cellstr_value(), octave_char_matrix_str::cellstr_value(), octave::interpreter::chdir(), octave::check_access(), check_exception(), octave::load_path::package_info::check_file_type(), check_hdf5_id_value(), octave::cdef_method::cdef_method_rep::check_method(), check_version(), octave::class_fevalStatic(), octave::class_fromName(), octave::class_getConstant(), octave_oncleanup::clone(), Cell::column(), QtHandles::Table::comboBoxCurrentIndexChanged(), octave_class::exemplar_info::compare(), octave_uint64_matrix::complex_matrix_value(), octave_map::concat(), octave::bp_table::condition_valid(), octave::cdef_class::cdef_class_rep::construct_object(), convert(), octave::convert_data(), property::create(), octave::tree_jit::create_new_engine(), octave::call_stack::current_function(), color_property::current_value(), double_radio_property::current_value(), octave::bp_table::dbstop_process_map_args(), octave::call_stack::dbupdown(), decode_subscripts(), octave::tree_evaluator::define_parameter_list_from_arg_vector(), DEFMETHOD(), DEFMETHODX(), octave_base_matrix< Cell >::delete_elements(), octave_base_sparse< T >::delete_elements(), octave_complex_matrix::diag(), octave_float_complex_matrix::diag(), octave_float_matrix::diag(), octave_matrix::diag(), octave::dims_to_numel(), octave::symbol_info::display_line(), do_accumarray_minmax(), do_accumarray_minmax_fun(), do_accumarray_sum(), do_accumdim_sum(), do_bessel(), do_bitpack(), do_cat(), do_class_concat(), do_cumminmax_body(), do_dbstack(), octave::history_system::do_edit_history(), do_fft(), do_fft2(), do_fftn(), do_fread(), do_fwrite(), octave::history_system::do_history(), octave_base_value::do_index_op(), do_merge(), do_minmax_body(), octave_value::do_non_const_unary_op(), do_num2cell_helper(), do_object2cell(), QtHandles::GLCanvas::do_print(), octave::do_printf_conv(), octave::do_printf_string(), do_rand(), do_repelems(), octave::textscan::do_scan(), base_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(), callback_property::do_set(), string_property::do_set(), string_array_property::do_set(), text_label_property::do_set(), children_property::do_set(), octave::do_simple_cellfun(), do_strcmp_fun(), do_stream_open(), do_tril(), do_trilu(), do_triu(), octave::call_stack::do_who(), octave_class::dotref(), double_radio_property::double_value(), octave::tree_evaluator::echo(), encode_uint_image(), err_2_or_3_dim_plot(), err_assign_conversion_failed(), octave::err_bad_result(), err_data_conversion(), err_disabled_feature(), err_failed_diagonalization(), octave::err_file_open(), err_indexed_assignment(), err_indexed_cs_list(), err_invalid_conversion(), octave::err_invalid_fcn_handle(), octave::err_invalid_file_id(), err_invalid_index1(), err_invalid_index_for_assignment(), err_invalid_index_type(), err_invalid_inquiry_subscript(), octave::cdef_object_rep::err_invalid_object(), err_invalid_structure_assignment(), mxArray_matlab::err_invalid_type(), mxArray_base::err_invalid_type(), octave::err_method_access(), err_no_conversion(), err_nonbraced_cs_list_assignment(), err_nonconformant(), err_nonsquare_matrix(), err_not_implemented(), octave::cdef_property::cdef_property_rep::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::stream::error(), octave::opengl_tessellator::error(), eval_error(), octave::tree_evaluator::eval_string(), octave::tree_evaluator::evalin(), octave::tree_cell::evaluate(), octave::tree_colon_expression::evaluate(), octave::tree_constant::evaluate(), octave::tree_simple_assignment::evaluate(), octave::tree_evaluator::evaluate_end_expression(), octave::tree_multi_assignment::evaluate_n(), octave::tree_index_expression::evaluate_n(), octave::cdef_method::cdef_method_rep::execute(), octave_classdef_superclass_ref::execute(), octave_builtin::execute(), octave_mex_function::execute(), gh_manager::execute_callback(), octave::tree_evaluator::execute_user_function(), octave::tree_evaluator::execute_user_script(), extended_gcd(), extract_function(), 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__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__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__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__update_normals__(), F__voronoi__(), F__zoom__(), Faddlistener(), Faddpath(), Faddproperty(), Fairy(), Fall(), Famd(), Fany(), octave::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(), Fcolamd(), Fcolloc(), Fcomplex(), Fconv2(), Fconvhulln(), Fconvn(), Fcsymamd(), Fcumsum(), Fdbcont(), Fdblist(), Fdbquit(), Fdbstatus(), Fdbstep(), Fdbstop(), Fdbtype(), Fdellistener(), Fdiag(), Fdiff(), Fdlmread(), Fdot(), Fdrawnow(), Feig(), Fellipj(), Feps(), Fetree(), octave::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(), QtHandles::ObjectProxy::finalize(), Find2sub(), octave::cdef_manager::find_class(), octave::find_file_to_load(), octave::cdef_manager::find_package(), Finferiorto(), Fintmax(), Fintmin(), Fis_same_file(), Fisargout(), Fissorted(), Flasterror(), 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(), Fordschur(), Fpause(), Fpinv(), Fpopen(), Fpopen2(), Fprod(), Fproperties(), Fpsi(), Fqr(), Fqrdelete(), Fqrinsert(), Fqrshift(), Fqrupdate(), Fquadcc(), Fquit(), Fqz(), Frandg(), Frandp(), Frandperm(), Frats(), Frcond(), gh_manager::free(), octave::url_handle_manager::free(), Fregexprep(), Frem(), 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(), Fsystem(), Fterminal_size(), Ftmpfile(), Ftoc(), Ftypecast(), Fumask(), Furlread(), Furlwrite(), Fvec(), Fwaitfor(), Fwarning(), Fwinqueryreg(), octave::cdef_object_scalar::get(), base_property::get(), octave::user_fcn_stack_frame::get_access_link(), get_blkmm_dims(), get_dim_vector(), octave::get_dimensions(), 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(), octave::call_stack::get_new_frame_index_and_links(), QtHandles::ObjectProxy::get_pixels(), octave::cdef_object_scalar::get_property(), base_properties::get_property_dynamic(), get_property_from_handle(), get_region_range(), get_scan_string_data(), octave::get_size(), get_sort_mode_option(), octave::gtk_manager::get_toolkit(), octave::cdef_property::cdef_property_rep::get_value(), octave::gl2ps_print(), glpk(), octave::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(), octave::tm_row_const::init(), 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::cdef_class::cdef_class_rep::install_method(), mxArray_number::int_to_ov(), octave::tree_evaluator::is_logically_true(), octave_cell::is_sorted_rows(), octave_cell::is_true(), is_valid_function(), isargout1(), octave_cell::issorted(), QtHandles::Table::itemChanged(), lin_interpn(), octave::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(), octave::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_perm_matrix::load_ascii(), octave_range::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(), octave::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_sparse_matrix::load_binary(), octave_struct::load_binary(), octave_scalar_struct::load_binary(), octave::anonymous_fcn_handle::load_hdf5(), load_inline_fcn(), octave::dynamic_loader::load_mex(), octave::dynamic_loader::load_oct(), octave::load_save_system::load_vars(), octave::tree_expression::lvalue(), octave::tree_index_expression::lvalue(), octave_value_list::make_argv(), octave::cdef_manager::make_class(), octave::stack_frame::make_global(), gh_manager::make_graphics_handle(), make_graphics_object(), make_idx_args(), octave::cdef_class::make_meta_class(), octave::stack_frame::make_persistent(), octave::url_handle_manager::make_url_handle(), mex::malloc_unmarked(), octave_base_sparse< SparseMatrix >::map(), octave_char_matrix::map(), octave_base_value::map(), octave::script_stack_frame::mark_scope(), octave::user_fcn_stack_frame::mark_scope(), mat2cell_mismatch(), octave_uint64_matrix::matrix_value(), octave::cdef_meta_object_rep::meta_subsref(), octave::cdef_class::cdef_class_rep::meta_subsref(), octave::cdef_method::cdef_method_rep::meta_subsref(), octave::cdef_package::cdef_package_rep::meta_subsref(), mexErrMsgIdAndTxt(), mexErrMsgTxt(), octave::tree_evaluator::mislocked(), octave::interpreter::mislocked(), octave::mk_tmp_hist_file(), octave::tree_evaluator::mlock(), octave::tree_evaluator::munlock(), octave::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(), octave_value::op_eq_to_binary_op(), octave::output_system::open_diary(), octave_map::optimize_dimensions(), octave_map::orderfields(), octave_scalar_map::orderfields(), octave::package_fromName(), octave::bp_table::parse_dbfunction_params(), octave::textscan::parse_options(), parse_options(), parse_range_spec(), octave::load_save_system::parse_save_options(), octave::symbol_info_list::parse_whos_line_format(), permute_to_correct_order(), QtHandles::ObjectProxy::print(), octave::anonymous_fcn_handle::print_raw(), print_usage(), printf_internal(), octave::textscan_format_list::process_conversion(), octave::bp_table::process_id_list(), qp(), octave::raw_mode(), read_binary_data(), octave::read_binary_file_header(), 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(), gh_manager::renumber_figure(), reparent(), octave::interpreter::require_current_scope(), octave::profiler::reset(), octave::error_system::rethrow_error(), octave::variable_editor_model::retrieve_variable(), color_property::rgb(), octave::push_parser::run(), octave::parser::run(), run_command_and_return_output(), octave::cdef_class::cdef_class_rep::run_constructor(), octave::load_save_system::save(), save_mat5_binary_element(), save_three_d(), octave::load_save_system::save_vars(), octave_base_value::scalar_map_value(), base_scaler::scale(), scanf_internal(), octave::script_stack_frame::scope_flag(), octave::user_fcn_stack_frame::scope_flag(), QtHandles::Table::sendCellEditCallback(), property_list::set(), graphics_object::set(), figure::properties::set___graphics_toolkit__(), base_properties::set_dynamic(), set_format_style(), base_properties::set_from_list(), octave::octave_lvalue::set_index(), set_internal_variable(), octave::ft_text_renderer::set_mode(), base_properties::set_parent(), octave::cdef_object_scalar::set_property(), set_property_in_handle(), octave::script_stack_frame::set_script_offsets_internal(), octave::bp_table::set_stop_flag(), axes::properties::set_text_child(), octave::cdef_property::cdef_property_rep::set_value(), octave::error_system::set_warning_option(), octave_map::setfield(), simple_gcd(), octave_class::size(), octave_classdef::size(), octave_cell::sort(), octave_cell::sort_rows_idx(), octave::tree_evaluator::source_file(), octave_value_list::splice(), octave_base_value::squeeze(), octave::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(), octave::cdef_object_array::subsasgn(), octave::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_value::subsref(), octave_perm_matrix::subsref(), octave_range::subsref(), octave_cell::subsref(), octave::base_fcn_handle::subsref(), octave::cdef_object_array::subsref(), octave::cdef_object_scalar::subsref(), symbol_exist(), octave::opengl_tessellator::tess_error(), textscan_internal(), octave::to_cdef(), octave::to_cdef_ref(), octave_base_diag< FloatComplexDiagMatrix, FloatComplexMatrix >::to_dense(), try_cellfun_internal_ops(), octave_value::unary_op_to_assign_op(), base_scaler::unscale(), base_graphics_object::update_axis_limits(), array_property::validate(), radio_values::validate(), color_values::validate(), validate_property_name(), base_graphics_object::value_as_string(), base_property::values_as_cell(), base_graphics_object::values_as_string(), base_property::values_as_string(), base_graphics_object::values_as_struct(), octave::script_stack_frame::varref(), octave::user_fcn_stack_frame::varref(), octave::scope_stack_frame::varref(), octave::script_stack_frame::varval(), octave::user_fcn_stack_frame::varval(), octave::scope_stack_frame::varval(), octave::tree_evaluator::visit_break_command(), octave::tree_evaluator::visit_complex_for_command(), octave::tree_evaluator::visit_decl_elt(), octave::tree_evaluator::visit_simple_for_command(), octave::tree_evaluator::visit_statement_list(), octave::tree_evaluator::visit_switch_command(), write_file(), write_mat5_array(), octave::xerbla_abort(), octave_class::xnumel(), octave_classdef::xnumel(), and xpow().
void error | ( | octave::execution_exception & | e, |
const char * | fmt, | ||
... | |||
) |
|
static |
Definition at line 85 of file error.cc.
References octave::__get_error_system__(), and octave::error_system::error_1().
|
static |
Definition at line 75 of file error.cc.
References octave::__get_error_system__(), and octave::error_system::error_1().
Referenced by defun_usage_message(), verror(), verror_with_cfn(), verror_with_id(), verror_with_id_cfn(), vparse_error(), and vparse_error_with_id().
void error_with_cfn | ( | const char * | fmt, |
... | |||
) |
Definition at line 998 of file error.cc.
References verror_with_cfn().
Referenced by wants_local_change().
void error_with_id | ( | const char * | id, |
const char * | fmt, | ||
... | |||
) |
Definition at line 1013 of file error.cc.
References verror_with_id().
Referenced by octave_struct::dotref(), octave_scalar_struct::dotref(), octave::tree_identifier::eval_undefined_error(), octave::tree_simple_assignment::evaluate(), Farrayfun(), Fautoload(), octave::tree_evaluator::final_index_error(), Fsub2ind(), octave::property_get_defaultvalue(), and octave::tree_evaluator::visit_statement().
void error_with_id_cfn | ( | const char * | id, |
const char * | fmt, | ||
... | |||
) |
Definition at line 1028 of file error.cc.
References verror_with_id_cfn().
OCTAVE_EXPORT octave_value_list Fbeep_on_error | ( | octave::interpreter & | interp, |
const octave_value_list & | args, | ||
int | nargout | ||
) |
Definition at line 2088 of file error.cc.
References octave::error_system::beep_on_error().
OCTAVE_EXPORT octave_value_list Fdebug_on_error | ( | octave::interpreter & | interp, |
const octave_value_list & | args, | ||
int | nargout | ||
) |
Definition at line 2110 of file error.cc.
References octave::error_system::debug_on_error().
OCTAVE_EXPORT octave_value_list Fdebug_on_warning | ( | octave::interpreter & | interp, |
const octave_value_list & | args, | ||
int | nargout | ||
) |
Definition at line 2129 of file error.cc.
References octave::error_system::debug_on_warning().
OCTAVE_EXPORT octave_value_list Ferror | ( | octave::interpreter & | interp, |
const octave_value_list & | args, | ||
int | |||
) |
Definition at line 1249 of file error.cc.
References Fsprintf(), octave_value::is_defined(), octave_value::is_string(), octave_value::isempty(), octave_value::isstruct(), octave_value_list::length(), m, octave::error_system::make_stack_frame_list(), octave_value::map_value(), maybe_extract_message_id(), message(), print_usage(), retval, octave_value::string_value(), and octave::error_system::throw_error().
OCTAVE_EXPORT octave_value_list Flasterr | ( | octave::interpreter & | interp, |
const octave_value_list & | args, | ||
int | nargout | ||
) |
Definition at line 2001 of file error.cc.
References octave::error_system::last_error_id(), octave::error_system::last_error_message(), ovl(), and print_usage().
OCTAVE_EXPORT octave_value_list Flasterror | ( | octave::interpreter & | interp, |
const octave_value_list & | args, | ||
int | |||
) |
Definition at line 1855 of file error.cc.
References octave_scalar_map::assign(), octave::tree_evaluator::backtrace(), octave_scalar_map::contains(), octave::tree_evaluator::empty_backtrace(), error(), octave_scalar_map::getfield(), octave_value::isempty(), octave::error_system::last_error_id(), octave::error_system::last_error_message(), octave::error_system::last_error_stack(), octave_value::nint_value(), ovl(), print_usage(), octave_value::scalar_map_value(), octave_scalar_map::setfield(), and octave_value::string_value().
OCTAVE_EXPORT octave_value_list Flastwarn | ( | octave::interpreter & | interp, |
const octave_value_list & | args, | ||
int | nargout | ||
) |
Definition at line 2046 of file error.cc.
References octave::error_system::last_warning_id(), octave::error_system::last_warning_message(), ovl(), and print_usage().
|
static |
Definition at line 61 of file error.cc.
References octave::vformat().
Referenced by octave::error_system::error_1(), vmessage(), octave::error_system::vpanic(), octave::error_system::vusage(), and octave::error_system::vwarning().
OCTAVE_EXPORT octave_value_list Frethrow | ( | octave::interpreter & | interp, |
const octave_value_list & | args, | ||
int | |||
) |
Definition at line 1138 of file error.cc.
References octave_scalar_map::contains(), octave_scalar_map::contents(), error(), octave::init_error_stack(), ovl(), print_usage(), octave::error_system::rethrow_error(), octave_value::string_value(), and octave_value::xmap_value().
OCTAVE_EXPORT octave_value_list Fwarning | ( | octave::interpreter & | interp, |
const octave_value_list & | args, | ||
int | nargout | ||
) |
Definition at line 1462 of file error.cc.
References octave_map::assign(), octave_scalar_map::assign(), octave::error_system::backtrace_on_warning(), octave_scalar_map::contents(), octave::error_system::debug_on_warning(), octave::error_system::display_warning_options(), error(), octave::tree_evaluator::get_auto_fcn_var(), octave_scalar_map::getfield(), handle_message(), octave_value::is_defined(), octave_value::isstruct(), octave::error_system::last_warning_id(), octave::error_system::last_warning_message(), m, octave_value::map_value(), maybe_extract_message_id(), Array< T >::numel(), octave_stdout, octave::error_system::quiet_warning(), Array< T >::resize(), retval, octave::stack_frame::SAVED_WARNING_STATES, octave::tree_evaluator::set_auto_fcn_var(), octave::error_system::set_warning_option(), octave_map::setfield(), octave::state, transform(), octave::error_system::verbose_warning(), octave::error_system::warning_options(), octave::error_system::warning_query(), and warning_with_id().
Referenced by octave_user_function::restore_warning_states(), and set_warning_state().
|
static |
Definition at line 130 of file error.cc.
References f, Fsprintf(), octave_value::is_defined(), octave_value::is_string(), octave_value::isempty(), len, octave_value_list::length(), retval, octave_value::string_value(), and strlen().
Referenced by Fwarning().
void interpreter_try | ( | octave::unwind_protect & | frame | ) |
Definition at line 2182 of file error.cc.
References octave::__get_error_system__(), and octave::error_system::interpreter_try().
Referenced by octave_oncleanup::call_object_destructor(), octave::tree::meets_bp_condition(), octave_class::reconstruct_exemplar(), octave::cdef_object_rep::release(), base_graphics_object::remove_all_listeners(), and octave::tree_evaluator::visit_try_catch_command().
std::string last_error_id | ( | void | ) |
Definition at line 2146 of file error.cc.
References octave::__get_error_system__(), and octave::error_system::last_error_id().
std::string last_error_message | ( | void | ) |
Definition at line 2137 of file error.cc.
References octave::__get_error_system__(), and octave::error_system::last_error_message().
octave_map last_error_stack | ( | void | ) |
Definition at line 2155 of file error.cc.
References octave::__get_error_system__(), and octave::error_system::last_error_stack().
std::string last_warning_id | ( | void | ) |
Definition at line 2173 of file error.cc.
References octave::__get_error_system__(), and octave::error_system::last_warning_id().
std::string last_warning_message | ( | void | ) |
Definition at line 2164 of file error.cc.
References octave::__get_error_system__(), and octave::error_system::last_warning_message().
|
static |
Definition at line 191 of file error.cc.
References octave_value_list::length(), and octave_value_list::resize().
Referenced by Ferror(), and Fwarning().
void message | ( | const char * | name, |
const char * | fmt, | ||
... | |||
) |
Definition at line 936 of file error.cc.
References name, and vmessage().
Referenced by octave::load_save_system::dump_octave_core(), octave::error_system::error_1(), Ferror(), octave::QUIWidgetCreator::handle_create_dialog(), octave::main_window::handle_edit_mfile_request(), octave::QUIWidgetCreator::message_dialog(), octave::error_system::save_exception(), octave::main_window::show_about_octave(), sparse_chol_error_internal(), SparseCholError(), octave::error_system::throw_error(), vmessage(), octave::error_system::vusage(), and octave::main_window::warning_function_not_found().
OCTAVE_NORETURN void panic | ( | const char * | fmt, |
... | |||
) |
Definition at line 1114 of file error.cc.
References vpanic().
Referenced by octave::symbol_table::alias_built_in_function().
void parse_error | ( | const char * | fmt, |
... | |||
) |
Definition at line 1080 of file error.cc.
References vparse_error().
Referenced by octave::push_parser::run(), and octave::parser::run().
void parse_error_with_id | ( | const char * | id, |
const char * | fmt, | ||
... | |||
) |
Definition at line 1095 of file error.cc.
References vparse_error_with_id().
octave_value_list set_warning_state | ( | const octave_value_list & | args | ) |
Definition at line 1794 of file error.cc.
References octave::__get_interpreter__(), and Fwarning().
octave_value_list set_warning_state | ( | const std::string & | id, |
const std::string & | state | ||
) |
Definition at line 1780 of file error.cc.
References octave::__get_interpreter__(), Fwarning(), and octave::state.
Referenced by toggle_warn().
void usage_with_id | ( | const char * | id, |
const char * | fmt, | ||
... | |||
) |
Definition at line 953 of file error.cc.
References vusage_with_id().
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 | ||
) |
Definition at line 992 of file error.cc.
References error_1().
Referenced by error_with_cfn(), and octave::lo_error_handler().
void verror_with_id | ( | const char * | id, |
const char * | fmt, | ||
va_list | args | ||
) |
Definition at line 1007 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 1022 of file error.cc.
References error_1().
Referenced by error_with_id_cfn(), and octave::lo_error_with_id_handler().
void vmessage | ( | const char * | name, |
const char * | fmt, | ||
va_list | args | ||
) |
Definition at line 922 of file error.cc.
References format_message(), message(), name, and octave_diary.
Referenced by message().
OCTAVE_NORETURN void vpanic | ( | const char * | fmt, |
va_list | args | ||
) |
Definition at line 1105 of file error.cc.
References octave::__get_error_system__(), and octave::error_system::vpanic().
Referenced by panic().
void vparse_error | ( | const char * | fmt, |
va_list | args | ||
) |
void vparse_error_with_id | ( | const char * | id, |
const char * | fmt, | ||
va_list | args | ||
) |
Definition at line 1089 of file error.cc.
References error_1().
Referenced by parse_error_with_id().
void vusage_with_id | ( | const char * | id, |
const char * | fmt, | ||
va_list | args | ||
) |
Definition at line 945 of file error.cc.
References octave::__get_error_system__(), and octave::error_system::vusage().
Referenced by usage_with_id().
void vwarning | ( | const char * | fmt, |
va_list | args | ||
) |
Definition at line 1044 of file error.cc.
References vwarning().
|
static |
Definition at line 111 of file error.cc.
References octave::__get_error_system__(), and octave::error_system::vwarning().
Referenced by vwarning(), vwarning_with_id(), warning(), and warning_with_id().
void vwarning_with_id | ( | const char * | id, |
const char * | fmt, | ||
va_list | args | ||
) |
Definition at line 1059 of file error.cc.
References vwarning().
Referenced by mexWarnMsgIdAndTxt().
void warning | ( | const char * | fmt, |
... | |||
) |
Definition at line 1050 of file error.cc.
References vwarning().
Referenced by octave::documentation::documentation(), octave_oncleanup::octave_oncleanup(), octave::load_path::add(), octave_user_code::cache_function_text(), octave_oncleanup::call_object_destructor(), octave::stack_frame::clear_values(), gh_manager::close_all_figures(), octave::files_dock_widget::contextmenu_delete(), convert_cdata(), octave_float_scalar::convert_to_str_internal(), octave_float_matrix::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(), 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(), octave::ft_manager::do_get_font(), do_minmax_body(), do_regexp_ptn_string_escapes(), do_regexp_rep_string_escapes(), octave::load_save_system::do_save(), octave::do_string_escapes(), octave::call_stack::do_who(), octave::opengl_renderer::draw(), octave::opengl_renderer::draw_axes(), octave::opengl_renderer::draw_image(), octave::opengl_renderer::draw_patch(), octave::load_save_system::dump_octave_core(), eigs_func(), octave::event_manager::enable(), extract_function(), F__magick_ping__(), Fbalance(), Fclear(), Fconvhulln(), Fexist(), Fformat(), Ffreport(), Fgsvd(), Flookup(), Fopenvar(), Fpause(), Fqr(), Fquadcc(), mex::free(), free_qhull_memory(), mex::free_value(), Frmpath(), Fschur(), Fspparms(), Fsum(), Ftic(), Fwaitfor(), octave::ft_text_renderer::ft_font::get_face(), octave_user_code::get_file_info(), octave::load_path::dir_info::get_file_list(), mex::global_mark(), mex::global_unmark(), octave::base_lexer::handle_end_of_input(), hdf5_read_next_data_internal(), octave::opengl_renderer::init_gl_context(), octave::load_path::dir_info::initialize(), octave::initialize_error_handlers(), octave::fcn_info::fcn_info_rep::install_built_in_dispatch(), octave::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(), octave::load_save_system::load_vars(), lsode_user_function(), lsode_user_jacobian(), octave::base_parser::make_decl_command(), octave::opengl_renderer::make_marker_list(), mex::mark(), mex::mark_foreign(), maybe_warn_exclusive(), octave::tree::meets_bp_condition(), mexWarnMsgTxt(), octave::tree_evaluator::mlock(), octave::tree_evaluator::munlock(), octave::bp_table::parse_dbfunction_params(), octave::load_save_system::parse_save_options(), QtHandles::qStringValueFor(), quad_float_user_function(), quad_user_function(), read_file(), octave::textscan::read_format_once(), octave::JVMArgs::read_java_opts(), 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::cdef_object_rep::release(), octave::load_path::remove(), octave::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(), octave::load_save_system::save_vars(), octave::opengl_selector::select(), QtHandles::Table::sendCellEditCallback(), octave::ft_text_renderer::set_color(), set_DASPK_options(), set_DASRT_options(), set_DASSL_options(), set_internal_variable(), set_LSODE_options(), set_Quad_options(), octave::base_parser::set_stmt_print_flag(), octave::cdef_property::cdef_property_rep::set_value(), octave::shortcut_manager::shortcut_dialog_finished(), show_DASPK_options(), show_DASRT_options(), show_DASSL_options(), show_LSODE_options(), show_Quad_options(), octave::base_parser::start_function(), octave::base_fcn_handle::unimplemented(), mex::unmark(), mex::unmark_foreign(), QtHandles::ButtonControl::update(), QtHandles::PopupMenuControl::update(), octave::load_path::dir_info::update(), octave::load_path::update(), octave::ft_text_renderer::visit(), warn_disabled_feature(), warn_empty_arg(), warn_invalid_value_specified(), octave::event_queue_safe::warn_unhandled_exception(), warn_wrong_type_arg(), write_file(), xpow(), and axes::properties::zoom().
int warning_enabled | ( | const std::string & | id | ) |
Definition at line 1036 of file error.cc.
References octave::__get_error_system__(), and octave::error_system::warning_enabled().
Referenced by toggle_warn().
void warning_with_id | ( | const char * | id, |
const char * | fmt, | ||
... | |||
) |
Definition at line 1065 of file error.cc.
References vwarning().
Referenced by octave::load_path::add(), octave::load_path::package_info::add_to_fcn_map(), octave::tree_evaluator::check_autoload_file(), octave::check_dimensions(), check_hdf5_types(), octave::dynamic_loader::clear(), octave::dynamic_loader::clear_function(), radio_property::do_set(), color_property::do_set(), double_radio_property::do_set(), octave::opengl_renderer::draw_axes_children(), F__eigs__(), Faddpath(), Faudiodevinfo(), Faudiowrite(), Flu(), Fstr2func(), Fwarning(), octave_range::index_vector(), octave::initialize_error_handlers(), octave::stack_frame::install_variable(), octave::cdef_object::map_value(), octave::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(), octave::base_lexer::maybe_warn_separator_insert(), octave::maybe_warn_string_concat(), octave::base_parser::maybe_warn_variable_switch_label(), octave_lex(), octave::textscan_format_list::parse_char_class(), read_mat5_binary_element(), read_mat5_binary_file_header(), octave::load_path::set(), sqrtm_utri_inplace(), octave::base_parser::start_function(), validate_property_name(), warn_array_as_logical(), warn_complex_cmp(), warn_data_file_in_path(), warn_dim_too_large(), warn_empty_index(), octave::warn_glyph_render(), warn_implicit_conversion(), octave::base_lexer::warn_language_extension(), octave::base_fcn_handle::warn_load(), octave_base_value::warn_load(), warn_logical_conversion(), octave::warn_missing_glyph(), octave::base_fcn_handle::warn_save(), octave_base_value::warn_save(), octave::base_lexer::warn_single_quote_string(), and write_mat5_array().
int error_state = 0 |
Definition at line 2193 of file error.cc.
Referenced by octave::jit_typeinfo::jit_typeinfo().