GNU Octave  4.4.1
A high-level interpreted language, primarily intended for numerical computations, mostly compatible with Matlab
gripes.h
Go to the documentation of this file.
1 /*
2 
3 Copyright (C) 1993-2018 John W. Eaton
4 
5 This file is part of Octave.
6 
7 Octave is free software: you can redistribute it and/or modify it
8 under the terms of the GNU General Public License as published by
9 the Free Software Foundation, either version 3 of the License, or
10 (at your option) any later version.
11 
12 Octave is distributed in the hope that it will be useful, but
13 WITHOUT ANY WARRANTY; without even the implied warranty of
14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 GNU General Public License for more details.
16 
17 You should have received a copy of the GNU General Public License
18 along with Octave; see the file COPYING. If not, see
19 <https://www.gnu.org/licenses/>.
20 
21 */
22 
23 // FIXME: All gripe_XXX functions deprecated in 4.2. Remove file in
24 // version 5.
25 
26 #if ! defined (octave_gripes_h)
27 #define octave_gripes_h 1
28 
29 #include "octave-config.h"
30 
31 #include <string>
32 
33 #include "lo-array-gripes.h"
34 
35 class octave_value;
36 namespace octave
37 {
38  class execution_exception;
39 }
40 
41 ////////////////////////////////////////////////////////////////////////////////
42 // Alphabetized list of gripes.
43 ////////////////////////////////////////////////////////////////////////////////
44 
45 OCTAVE_DEPRECATED (4.2, "use 'err_2_or_3_dim_plot' instead")
46 OCTAVE_NORETURN OCTINTERP_API extern void
48 
49 OCTAVE_DEPRECATED (4.2, "use 'err_data_conversion' instead")
50 OCTAVE_NORETURN OCTINTERP_API extern void
51 gripe_data_conversion (const char *from, const char *to);
52 
53 OCTAVE_DEPRECATED (4.2, "use 'warn_data_file_in_path' instead")
54 OCTINTERP_API extern void
55 gripe_data_file_in_path (const std::string& fcn, const std::string& file);
56 
57 OCTAVE_DEPRECATED (4.2, "use 'err_disabled_feature' or 'warn_disabled_feature' instead")
58 OCTAVE_NORETURN OCTINTERP_API extern void
59 gripe_disabled_feature (const std::string& fcn,
60  const std::string& feature,
61  const std::string& pkg="Octave");
62 
63 OCTAVE_DEPRECATED (4.2, "use 'warn_divide_by_zero' instead")
64 OCTINTERP_API extern void
66 
67 OCTAVE_DEPRECATED (4.2, "use 'warn_empty_arg' instead")
68 OCTINTERP_API extern void
69 gripe_empty_arg (const char *name, bool is_error);
70 
71 OCTAVE_DEPRECATED (4.2, "use 'warn_implicit_conversion' instead")
72 OCTINTERP_API extern void
73 gripe_implicit_conversion (const char *id, const char *from, const char *to);
74 
75 OCTAVE_DEPRECATED (4.2, "use 'warn_implicit_conversion' instead")
76 OCTINTERP_API extern void
77 gripe_implicit_conversion (const std::string& id, const std::string& from,
78  const std::string& to);
79 
80 OCTAVE_DEPRECATED (4.2, "use 'err_indexed_cs_list' instead")
81 OCTAVE_NORETURN OCTINTERP_API extern void
83 
84 OCTAVE_DEPRECATED (4.2, "use 'err_invalid_conversion' instead")
85 OCTAVE_NORETURN OCTINTERP_API extern void
86 gripe_invalid_conversion (const std::string& from, const std::string& to);
87 
88 OCTAVE_DEPRECATED (4.2, "use 'err_invalid_inquiry_subscript' instead")
89 OCTAVE_NORETURN OCTINTERP_API extern void
91 
92 OCTAVE_DEPRECATED (4.2, "use 'warn_invalid_value_specified' instead")
93 OCTINTERP_API extern void
95 
96 OCTAVE_DEPRECATED (4.2, "use 'warn_logical_conversion' instead")
97 OCTINTERP_API extern void
99 
100 OCTAVE_DEPRECATED (4.2, "use 'err_nonbraced_cs_list_assignment' instead")
101 OCTAVE_NORETURN OCTINTERP_API extern void
103 
104 OCTAVE_DEPRECATED (4.2, "use 'err_nonconformant' instead")
105 OCTAVE_NORETURN OCTINTERP_API extern void
106 gripe_nonconformant (void);
107 
108 OCTAVE_DEPRECATED (4.2, "use 'err_nonconformant' instead")
109 OCTAVE_NORETURN OCTINTERP_API extern void
112 
113 OCTAVE_DEPRECATED (4.2, "use 'err_not_implemented' instead")
114 OCTAVE_NORETURN OCTINTERP_API extern void
115 gripe_not_implemented (const char *);
116 
117 // FIXME: DEPRECATED: Deprecated in 4.2, remove in 5.0
118 OCTAVE_DEPRECATED (4.2, "use 'err_disabled_feature' or 'warn_disabled_feature' instead")
119 OCTAVE_NORETURN OCTINTERP_API extern void
120 gripe_not_supported (const char *);
121 
122 OCTAVE_DEPRECATED (4.2, "use 'err_range_invalid' instead")
123 OCTAVE_NORETURN OCTINTERP_API extern void
124 gripe_range_invalid (void);
125 
126 OCTAVE_DEPRECATED (4.2, "use 'err_square_matrix_required' instead")
127 OCTAVE_NORETURN OCTINTERP_API extern void
128 gripe_square_matrix_required (const char *name);
129 
130 OCTAVE_DEPRECATED (4.2, "use 'err_string_invalid' instead")
131 OCTAVE_NORETURN OCTINTERP_API extern void
132 gripe_string_invalid (void);
133 
134 OCTAVE_DEPRECATED (4.2, "use 'err_unrecognized_data_fmt' instead")
135 OCTAVE_NORETURN OCTINTERP_API extern void
136 gripe_unrecognized_data_fmt (const char *warn_for);
137 
138 OCTAVE_DEPRECATED (4.2, "use 'err_unrecognized_float_fmt' instead")
139 OCTAVE_NORETURN OCTINTERP_API extern void
141 
142 OCTAVE_DEPRECATED (4.2, "use 'err_user_returned_invalid' instead")
143 OCTAVE_NORETURN OCTINTERP_API extern void
144 gripe_user_returned_invalid (const char *name);
145 
146 OCTAVE_DEPRECATED (4.2, "use 'err_user_supplied_eval' instead")
147 OCTAVE_NORETURN OCTINTERP_API extern void
148 gripe_user_supplied_eval (const char *name);
149 
150 OCTAVE_DEPRECATED (4.2, "use 'err_user_supplied_eval' instead")
151 OCTAVE_NORETURN OCTINTERP_API extern void
153 
154 OCTAVE_DEPRECATED (4.2, "use 'warn_complex_cmp' instead")
155 OCTINTERP_API extern void
157 
158 OCTAVE_DEPRECATED (4.2, "use 'err_wrong_type_arg' instead")
159 OCTINTERP_API extern void
160 gripe_wrong_type_arg (const char *name, const char *s,
161  bool is_error = true);
162 
163 OCTAVE_DEPRECATED (4.2, "use 'err_wrong_type_arg' instead")
164 OCTINTERP_API extern void
166  const char *name, const char *s,
167  bool is_error = true);
168 
169 OCTAVE_DEPRECATED (4.2, "use 'err_wrong_type_arg' instead")
170 OCTINTERP_API extern void
171 gripe_wrong_type_arg (const char *name, const std::string& s,
172  bool is_error = true);
173 
174 OCTAVE_DEPRECATED (4.2, "use 'err_wrong_type_arg' instead")
175 OCTINTERP_API extern void
177  const char *name, const std::string& s,
178  bool is_error = true);
179 
180 OCTAVE_DEPRECATED (4.2, "use 'err_wrong_type_arg' or 'warn_wrong_type_arg' instead")
181 OCTINTERP_API extern void
182 gripe_wrong_type_arg (const char *name, const octave_value& tc,
183  bool is_error = true);
184 
185 OCTAVE_DEPRECATED (4.2, "use 'err_wrong_type_arg' instead")
186 OCTINTERP_API extern void
188  const char *name, const octave_value& tc,
189  bool is_error = true);
190 
191 OCTAVE_DEPRECATED (4.2, "use 'err_wrong_type_arg' instead")
192 OCTINTERP_API extern void
193 gripe_wrong_type_arg (const std::string& name, const octave_value& tc,
194  bool is_error = true);
195 
196 OCTAVE_DEPRECATED (4.2, "use 'err_wrong_type_arg' instead")
197 OCTINTERP_API extern void
199  const std::string& name, const octave_value& tc,
200  bool is_error = true);
201 
202 OCTAVE_DEPRECATED (4.2, "use 'err_wrong_type_arg' instead")
203 OCTINTERP_API extern void
204 gripe_wrong_type_arg (const char *s, bool is_error = true);
205 
206 OCTAVE_DEPRECATED (4.2, "use 'err_wrong_type_arg' instead")
207 OCTINTERP_API extern void
209  bool is_error = true);
210 
211 OCTAVE_DEPRECATED (4.2, "use 'err_wrong_type_arg' instead")
212 OCTINTERP_API extern void
213 gripe_wrong_type_arg (const std::string& s, bool is_error = true);
214 
215 OCTAVE_DEPRECATED (4.2, "use 'err_wrong_type_arg' instead")
216 OCTINTERP_API extern void
218  bool is_error = true);
219 
220 OCTAVE_DEPRECATED (4.2, "use 'err_wrong_type_arg' instead")
221 OCTINTERP_API extern void
222 gripe_wrong_type_arg (const octave_value& tc, bool is_error = true);
223 
224 OCTAVE_DEPRECATED (4.2, "use 'err_wrong_type_arg' instead")
225 OCTINTERP_API extern void
227  bool is_error = true);
228 
229 OCTAVE_DEPRECATED (4.2, "use 'err_wrong_type_arg_for_binary_op' instead")
230 OCTAVE_NORETURN OCTINTERP_API extern void
232 
233 OCTAVE_DEPRECATED (4.2, "use 'err_wrong_type_arg_for_unary_op' instead")
234 OCTAVE_NORETURN OCTINTERP_API extern void
236 
237 #endif
void warn_empty_arg(const char *name)
Definition: errwarn.cc:332
OCTINTERP_API void gripe_wrong_type_arg(const char *name, const char *s, bool is_error=true)
Definition: gripes.cc:229
void err_data_conversion(const char *from, const char *to)
Definition: errwarn.cc:44
For example cd octave end example noindent changes the current working directory to file
Definition: dirfns.cc:124
void warn_invalid_value_specified(const char *name)
Definition: errwarn.cc:353
void err_nonbraced_cs_list_assignment(void)
Definition: errwarn.cc:86
OCTAVE_NORETURN OCTINTERP_API void gripe_user_supplied_eval(const char *name)
Definition: gripes.cc:198
OCTINTERP_API void gripe_invalid_value_specified(const char *name)
Definition: gripes.cc:117
OCTAVE_NORETURN OCTINTERP_API void gripe_not_implemented(const char *)
Definition: gripes.cc:150
void warn_logical_conversion(void)
Definition: errwarn.cc:359
void err_unrecognized_data_fmt(const char *name)
Definition: errwarn.cc:130
static OCTAVE_NORETURN void err_unrecognized_float_fmt(void)
Definition: data-conv.cc:615
void err_string_invalid(void)
Definition: errwarn.cc:124
STL namespace.
void err_wrong_type_arg_for_unary_op(const octave_value &op)
Definition: errwarn.cc:275
void err_square_matrix_required(const char *fcn, const char *name)
Definition: errwarn.cc:118
s
Definition: file-io.cc:2729
OCTINTERP_API void gripe_empty_arg(const char *name, bool is_error)
Definition: gripes.cc:75
OCTAVE_EXPORT octave_value_list or class The return code an ordinary file in Octave s or(after appending @samp{.m}) a function file in Octave 's ode
Definition: variables.cc:593
i e
Definition: data.cc:2591
octave_function * fcn
Definition: ov-class.cc:1754
OCTINTERP_API void gripe_logical_conversion(void)
Definition: gripes.cc:123
void err_indexed_cs_list(void)
Definition: errwarn.cc:62
OCTINTERP_API void gripe_divide_by_zero(void)
Definition: gripes.cc:69
nd deftypefn *std::string name
Definition: sysdep.cc:647
OCTAVE_NORETURN OCTINTERP_API void gripe_2_or_3_dim_plot(void)
Definition: gripes.cc:41
void warn_data_file_in_path(const std::string &fcn, const std::string &file)
Definition: errwarn.cc:306
OCTAVE_NORETURN OCTINTERP_API void gripe_unrecognized_data_fmt(const char *warn_for)
Definition: gripes.cc:180
OCTAVE_NORETURN OCTINTERP_API void gripe_square_matrix_required(const char *name)
Definition: gripes.cc:168
void err_range_invalid(void)
Definition: errwarn.cc:112
void err_wrong_type_arg_for_binary_op(const octave_value &op)
Definition: errwarn.cc:268
void warn_disabled_feature(const std::string &fcn, const std::string &feature, const std::string &pkg)
Definition: errwarn.cc:314
OCTAVE_NORETURN OCTINTERP_API void gripe_user_returned_invalid(const char *name)
Definition: gripes.cc:192
void err_nonconformant(const char *op, octave_idx_type op1_len, octave_idx_type op2_len)
void warn_divide_by_zero(void)
Definition: errwarn.cc:326
void warn_complex_cmp(void)
Definition: errwarn.cc:299
OCTAVE_NORETURN OCTINTERP_API void gripe_wrong_type_arg_for_unary_op(const octave_value &op)
Definition: gripes.cc:463
OCTAVE_NORETURN OCTINTERP_API void gripe_range_invalid(void)
Definition: gripes.cc:162
void err_wrong_type_arg(const char *name, const char *s)
Definition: errwarn.cc:162
OCTAVE_NORETURN OCTINTERP_API void gripe_unrecognized_float_fmt(void)
Definition: gripes.cc:186
void err_user_supplied_eval(const char *name)
Definition: errwarn.cc:148
OCTAVE_NORETURN OCTINTERP_API void gripe_invalid_conversion(const std::string &from, const std::string &to)
Definition: gripes.cc:105
void err_invalid_conversion(const std::string &from, const std::string &to)
Definition: errwarn.cc:68
OCTAVE_NORETURN OCTINTERP_API void gripe_not_supported(const char *)
Definition: gripes.cc:156
OCTAVE_NORETURN OCTINTERP_API void gripe_nonconformant(void)
Definition: gripes.cc:136
OCTAVE_NORETURN OCTINTERP_API void gripe_data_conversion(const char *from, const char *to)
Definition: gripes.cc:47
void warn_implicit_conversion(const char *id, const char *from, const char *to)
Definition: errwarn.cc:338
void warn_wrong_type_arg(const char *name, const octave_value &tc)
Definition: errwarn.cc:366
OCTAVE_NORETURN OCTINTERP_API void gripe_disabled_feature(const std::string &fcn, const std::string &feature, const std::string &pkg="Octave")
Definition: gripes.cc:61
void err_invalid_inquiry_subscript(void)
Definition: errwarn.cc:74
OCTINTERP_API void gripe_implicit_conversion(const char *id, const char *from, const char *to)
Definition: gripes.cc:84
OCTINTERP_API void gripe_data_file_in_path(const std::string &fcn, const std::string &file)
Definition: gripes.cc:53
OCTINTERP_API void gripe_warn_complex_cmp(void)
Definition: gripes.cc:222
OCTAVE_NORETURN OCTINTERP_API void gripe_string_invalid(void)
Definition: gripes.cc:174
OCTAVE_NORETURN OCTINTERP_API void gripe_nonbraced_cs_list_assignment(void)
Definition: gripes.cc:130
void err_not_implemented(const char *fcn)
Definition: errwarn.cc:106
OCTAVE_NORETURN OCTINTERP_API void gripe_indexed_cs_list(void)
Definition: gripes.cc:99
void err_disabled_feature(const std::string &fcn, const std::string &feature, const std::string &pkg)
Definition: errwarn.cc:50
OCTAVE_NORETURN OCTINTERP_API void gripe_wrong_type_arg_for_binary_op(const octave_value &op)
Definition: gripes.cc:456
OCTAVE_NORETURN OCTINTERP_API void gripe_invalid_inquiry_subscript(void)
Definition: gripes.cc:111
void err_user_returned_invalid(const char *name)
Definition: errwarn.cc:142