GNU Octave 7.1.0
A high-level interpreted language, primarily intended for numerical computations, mostly compatible with Matlab
errwarn.h
Go to the documentation of this file.
1////////////////////////////////////////////////////////////////////////
2//
3// Copyright (C) 2016-2022 The Octave Project Developers
4//
5// See the file COPYRIGHT.md in the top-level directory of this
6// distribution or <https://octave.org/copyright/>.
7//
8// This file is part of Octave.
9//
10// Octave is free software: you can redistribute it and/or modify it
11// under the terms of the GNU General Public License as published by
12// the Free Software Foundation, either version 3 of the License, or
13// (at your option) any later version.
14//
15// Octave is distributed in the hope that it will be useful, but
16// WITHOUT ANY WARRANTY; without even the implied warranty of
17// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18// GNU General Public License for more details.
19//
20// You should have received a copy of the GNU General Public License
21// along with Octave; see the file COPYING. If not, see
22// <https://www.gnu.org/licenses/>.
23//
24////////////////////////////////////////////////////////////////////////
25
26#if ! defined (octave_errwarn_h)
27#define octave_errwarn_h 1
28
29#include "octave-config.h"
30
31#include <string>
32
33#include "lo-array-errwarn.h"
34
35class octave_value;
36namespace octave
37{
39}
40
41////////////////////////////////////////////////////////////////////////////////
42// Alphabetized list of common errors and warnings.
43////////////////////////////////////////////////////////////////////////////////
44
45OCTAVE_NORETURN extern OCTINTERP_API void
47
48OCTAVE_NORETURN extern OCTINTERP_API void
49err_data_conversion (const char *from, const char *to);
50
51OCTAVE_NORETURN extern OCTINTERP_API void
52err_disabled_feature (const std::string& fcn, const std::string& feature,
53 const std::string& pkg = "Octave");
54
55OCTAVE_NORETURN extern OCTINTERP_API void
57
58OCTAVE_NORETURN extern OCTINTERP_API void
59err_invalid_conversion (const std::string& from, const std::string& to);
60
61OCTAVE_NORETURN extern OCTINTERP_API void
63
64OCTAVE_NORETURN extern OCTINTERP_API void
66
67OCTAVE_NORETURN extern OCTINTERP_API void
69
70OCTAVE_NORETURN extern OCTINTERP_API void
72
73OCTAVE_NORETURN extern OCTINTERP_API void
76
77OCTAVE_NORETURN extern OCTINTERP_API void
78err_not_implemented (const char *);
79
80OCTAVE_NORETURN extern OCTINTERP_API void
82
83OCTAVE_NORETURN extern OCTINTERP_API void
84err_square_matrix_required (const char *fcn, const char *name);
85
86OCTAVE_NORETURN extern OCTINTERP_API void
88
89OCTAVE_NORETURN extern OCTINTERP_API void
91
92OCTAVE_NORETURN extern OCTINTERP_API void
94
95OCTAVE_NORETURN extern OCTINTERP_API void
97
98OCTAVE_NORETURN extern OCTINTERP_API void
99err_user_supplied_eval (const char *name);
100
101OCTAVE_NORETURN extern OCTINTERP_API void
102err_user_supplied_eval (octave::execution_exception& ee, const char *name);
103
104OCTAVE_NORETURN extern OCTINTERP_API void
105err_wrong_type_arg (const char *name, const char *s);
106
107OCTAVE_NORETURN extern OCTINTERP_API void
108err_wrong_type_arg (octave::execution_exception& ee, const char *name,
109 const char *s);
110
111OCTAVE_NORETURN extern OCTINTERP_API void
112err_wrong_type_arg (const char *name, const std::string& s);
113
114OCTAVE_NORETURN extern OCTINTERP_API void
115err_wrong_type_arg (octave::execution_exception& ee, const char *name,
116 const std::string& s);
117
118OCTAVE_NORETURN extern OCTINTERP_API void
119err_wrong_type_arg (const char *name, const octave_value& tc);
120
121OCTAVE_NORETURN extern OCTINTERP_API void
122err_wrong_type_arg (octave::execution_exception& ee, const char *name,
123 const octave_value& tc);
124
125OCTAVE_NORETURN extern OCTINTERP_API void
126err_wrong_type_arg (const std::string& name, const octave_value& tc);
127
128OCTAVE_NORETURN extern OCTINTERP_API void
129err_wrong_type_arg (octave::execution_exception& ee, const std::string& name,
130 const octave_value& tc);
131
132OCTAVE_NORETURN extern OCTINTERP_API void
133err_wrong_type_arg (const char *s);
134
135OCTAVE_NORETURN extern OCTINTERP_API void
136err_wrong_type_arg (octave::execution_exception& ee, const char *s);
137
138OCTAVE_NORETURN extern OCTINTERP_API void
139err_wrong_type_arg (const std::string& s);
140
141OCTAVE_NORETURN extern OCTINTERP_API void
142err_wrong_type_arg (octave::execution_exception& ee, const std::string& s);
143
144OCTAVE_NORETURN extern OCTINTERP_API void
146
147OCTAVE_NORETURN extern OCTINTERP_API void
148err_wrong_type_arg (octave::execution_exception& ee, const octave_value& tc);
149
150OCTAVE_NORETURN extern OCTINTERP_API void
152
153OCTAVE_NORETURN extern OCTINTERP_API void
155
156extern OCTINTERP_API void
158
159extern OCTINTERP_API void
160warn_complex_cmp (void);
161
162extern OCTINTERP_API void
163warn_data_file_in_path (const std::string& fcn, const std::string& file);
164
165extern OCTINTERP_API void
166warn_disabled_feature (const std::string& fcn, const std::string& feature,
167 const std::string& pkg = "Octave");
168
169extern OCTINTERP_API void
170warn_empty_arg (const char *name);
171
172extern OCTINTERP_API void
173warn_empty_index (const std::string& type_name);
174
175extern OCTINTERP_API void
176warn_implicit_conversion (const char *id, const char *from, const char *to);
177
178extern OCTINTERP_API void
179warn_implicit_conversion (const std::string& id, const std::string& from,
180 const std::string& to);
181
182extern OCTINTERP_API void
184
185extern OCTINTERP_API void
187
188extern OCTINTERP_API void
189warn_wrong_type_arg (const char *name, const octave_value& tc);
190
191#if defined (OCTAVE_PROVIDE_DEPRECATED_SYMBOLS)
192OCTAVE_DEPRECATED (6, "this function will be removed in a future version of Octave")
193inline void
194warn_divide_by_zero (void)
195{ }
196#endif
197
198#endif
Vector representing the dimensions (size) of an Array.
Definition: dim-vector.h:94
OCTAVE_NORETURN OCTINTERP_API void err_not_implemented(const char *)
Definition: errwarn.cc:110
OCTINTERP_API void warn_implicit_conversion(const char *id, const char *from, const char *to)
Definition: errwarn.cc:344
OCTINTERP_API void warn_complex_cmp(void)
Definition: errwarn.cc:303
OCTAVE_NORETURN OCTINTERP_API void err_2_or_3_dim_plot(void)
Definition: errwarn.cc:41
OCTAVE_NORETURN OCTINTERP_API void err_user_supplied_eval(const char *name)
Definition: errwarn.cc:152
OCTAVE_NORETURN OCTINTERP_API void err_string_invalid(void)
Definition: errwarn.cc:128
OCTINTERP_API void warn_disabled_feature(const std::string &fcn, const std::string &feature, const std::string &pkg="Octave")
Definition: errwarn.cc:318
OCTINTERP_API void warn_empty_arg(const char *name)
Definition: errwarn.cc:330
OCTINTERP_API void warn_data_file_in_path(const std::string &fcn, const std::string &file)
Definition: errwarn.cc:310
OCTAVE_NORETURN OCTINTERP_API void err_wrong_type_arg(const char *name, const char *s)
Definition: errwarn.cc:166
OCTINTERP_API void warn_empty_index(const std::string &type_name)
Definition: errwarn.cc:336
OCTAVE_NORETURN OCTINTERP_API void err_wrong_type_arg_for_unary_op(const octave_value &op)
Definition: errwarn.cc:279
OCTAVE_NORETURN OCTINTERP_API void err_invalid_conversion(const std::string &from, const std::string &to)
Definition: errwarn.cc:71
OCTAVE_NORETURN OCTINTERP_API void err_unrecognized_float_fmt(void)
Definition: errwarn.cc:140
OCTINTERP_API void warn_array_as_logical(const dim_vector &dv)
Definition: errwarn.cc:286
OCTAVE_NORETURN OCTINTERP_API void err_invalid_structure_assignment(void)
Definition: errwarn.cc:83
OCTINTERP_API void warn_logical_conversion(void)
Definition: errwarn.cc:365
OCTINTERP_API void warn_wrong_type_arg(const char *name, const octave_value &tc)
Definition: errwarn.cc:372
OCTAVE_NORETURN OCTINTERP_API void err_nonconformant(void)
Definition: errwarn.cc:95
OCTAVE_NORETURN OCTINTERP_API void err_nonbraced_cs_list_assignment(void)
Definition: errwarn.cc:89
OCTAVE_NORETURN OCTINTERP_API void err_data_conversion(const char *from, const char *to)
Definition: errwarn.cc:47
OCTINTERP_API void warn_invalid_value_specified(const char *name)
Definition: errwarn.cc:359
OCTAVE_NORETURN OCTINTERP_API void err_unrecognized_data_fmt(const char *name)
Definition: errwarn.cc:134
OCTAVE_NORETURN OCTINTERP_API void err_indexed_cs_list(void)
Definition: errwarn.cc:65
OCTAVE_NORETURN OCTINTERP_API void err_wrong_type_arg_for_binary_op(const octave_value &op)
Definition: errwarn.cc:272
OCTAVE_NORETURN OCTINTERP_API void err_user_returned_invalid(const char *name)
Definition: errwarn.cc:146
OCTAVE_NORETURN OCTINTERP_API void err_square_matrix_required(const char *fcn, const char *name)
Definition: errwarn.cc:122
OCTAVE_NORETURN OCTINTERP_API void err_range_invalid(void)
Definition: errwarn.cc:116
OCTAVE_NORETURN OCTINTERP_API void err_invalid_inquiry_subscript(void)
Definition: errwarn.cc:77
OCTAVE_NORETURN OCTINTERP_API void err_disabled_feature(const std::string &fcn, const std::string &feature, const std::string &pkg="Octave")
Definition: errwarn.cc:53
QString name