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
gripes.h
Go to the documentation of this file.
1 /*
2 
3 Copyright (C) 1993-2017 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 the
9 Free Software Foundation; either version 3 of the License, or (at your
10 option) any later version.
11 
12 Octave is distributed in the hope that it will be useful, but WITHOUT
13 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
14 FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
15 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 <http://www.gnu.org/licenses/>.
20 
21 */
22 
23 // FIXME: All gripe_XXX functions deprecated in 4.2. Remove file in 4.6
24 #if ! defined (octave_gripes_h)
25 #define octave_gripes_h 1
26 
27 #include "octave-config.h"
28 
29 #include <string>
30 
31 #include "lo-array-gripes.h"
32 
33 class octave_value;
34 namespace octave
35 {
36  class execution_exception;
37 }
38 
39 ////////////////////////////////////////////////////////////////////////////////
40 // Alphabetized list of gripes.
41 ////////////////////////////////////////////////////////////////////////////////
42 
43 OCTAVE_DEPRECATED ("use 'err_2_or_3_dim_plot' instead")
44 OCTAVE_NORETURN OCTINTERP_API extern void
46 
47 OCTAVE_DEPRECATED ("use 'err_data_conversion' instead")
48 OCTAVE_NORETURN OCTINTERP_API extern void
49 gripe_data_conversion (const char *from, const char *to);
50 
51 OCTAVE_DEPRECATED ("use 'warn_data_file_in_path' instead")
52 OCTINTERP_API extern void
53 gripe_data_file_in_path (const std::string& fcn, const std::string& file);
54 
55 OCTAVE_DEPRECATED ("use 'err_disabled_feature' or 'warn_disabled_feature' instead")
56 OCTAVE_NORETURN OCTINTERP_API extern void
57 gripe_disabled_feature (const std::string& fcn,
58  const std::string& feature,
59  const std::string& pkg="Octave");
60 
61 OCTAVE_DEPRECATED ("use 'warn_divide_by_zero' instead")
62 OCTINTERP_API extern void
64 
65 OCTAVE_DEPRECATED ("use 'warn_empty_arg' instead")
66 OCTINTERP_API extern void
67 gripe_empty_arg (const char *name, bool is_error);
68 
69 OCTAVE_DEPRECATED ("use 'warn_implicit_conversion' instead")
70 OCTINTERP_API extern void
71 gripe_implicit_conversion (const char *id, const char *from, const char *to);
72 
73 OCTAVE_DEPRECATED ("use 'warn_implicit_conversion' instead")
74 OCTINTERP_API extern void
75 gripe_implicit_conversion (const std::string& id, const std::string& from,
76  const std::string& to);
77 
78 OCTAVE_DEPRECATED ("use 'err_indexed_cs_list' instead")
79 OCTAVE_NORETURN OCTINTERP_API extern void
81 
82 OCTAVE_DEPRECATED ("use 'err_invalid_conversion' instead")
83 OCTAVE_NORETURN OCTINTERP_API extern void
84 gripe_invalid_conversion (const std::string& from, const std::string& to);
85 
86 OCTAVE_DEPRECATED ("use 'err_invalid_inquiry_subscript' instead")
87 OCTAVE_NORETURN OCTINTERP_API extern void
89 
90 OCTAVE_DEPRECATED ("use 'warn_invalid_value_specified' instead")
91 OCTINTERP_API extern void
92 gripe_invalid_value_specified (const char *name);
93 
94 OCTAVE_DEPRECATED ("use 'warn_logical_conversion' instead")
95 OCTINTERP_API extern void
97 
98 OCTAVE_DEPRECATED ("use 'err_nonbraced_cs_list_assignment' instead")
99 OCTAVE_NORETURN OCTINTERP_API extern void
101 
102 OCTAVE_DEPRECATED ("use 'err_nonconformant' instead")
103 OCTAVE_NORETURN OCTINTERP_API extern void
104 gripe_nonconformant (void);
105 
106 OCTAVE_DEPRECATED ("use 'err_nonconformant' instead")
107 OCTAVE_NORETURN OCTINTERP_API extern void
110 
111 OCTAVE_DEPRECATED ("use 'err_not_implemented' instead")
112 OCTAVE_NORETURN OCTINTERP_API extern void
113 gripe_not_implemented (const char *);
114 
115 // FIXME: Deprecated in 4.2, remove in 4.6
116 OCTAVE_DEPRECATED ("use 'err_disabled_feature' or 'warn_disabled_feature' instead")
117 OCTAVE_NORETURN OCTINTERP_API extern void
118 gripe_not_supported (const char *);
119 
120 OCTAVE_DEPRECATED ("use 'err_range_invalid' instead")
121 OCTAVE_NORETURN OCTINTERP_API extern void
122 gripe_range_invalid (void);
123 
124 OCTAVE_DEPRECATED ("use 'err_square_matrix_required' instead")
125 OCTAVE_NORETURN OCTINTERP_API extern void
126 gripe_square_matrix_required (const char *name);
127 
128 OCTAVE_DEPRECATED ("use 'err_string_invalid' instead")
129 OCTAVE_NORETURN OCTINTERP_API extern void
130 gripe_string_invalid (void);
131 
132 OCTAVE_DEPRECATED ("use 'err_unrecognized_data_fmt' instead")
133 OCTAVE_NORETURN OCTINTERP_API extern void
134 gripe_unrecognized_data_fmt (const char *warn_for);
135 
136 OCTAVE_DEPRECATED ("use 'err_unrecognized_float_fmt' instead")
137 OCTAVE_NORETURN OCTINTERP_API extern void
139 
140 OCTAVE_DEPRECATED ("use 'err_user_returned_invalid' instead")
141 OCTAVE_NORETURN OCTINTERP_API extern void
142 gripe_user_returned_invalid (const char *name);
143 
144 OCTAVE_DEPRECATED ("use 'err_user_supplied_eval' instead")
145 OCTAVE_NORETURN OCTINTERP_API extern void
146 gripe_user_supplied_eval (const char *name);
147 
148 OCTAVE_DEPRECATED ("use 'err_user_supplied_eval' instead")
149 OCTAVE_NORETURN OCTINTERP_API extern void
151 
152 OCTAVE_DEPRECATED ("use 'warn_complex_cmp' instead")
153 OCTINTERP_API extern void
155 
156 OCTAVE_DEPRECATED ("use 'err_wrong_type_arg' instead")
157 OCTINTERP_API extern void
158 gripe_wrong_type_arg (const char *name, const char *s,
159  bool is_error = true);
160 
161 OCTAVE_DEPRECATED ("use 'err_wrong_type_arg' instead")
162 OCTINTERP_API extern void
164  const char *name, const char *s,
165  bool is_error = true);
166 
167 OCTAVE_DEPRECATED ("use 'err_wrong_type_arg' instead")
168 OCTINTERP_API extern void
169 gripe_wrong_type_arg (const char *name, const std::string& s,
170  bool is_error = true);
171 
172 OCTAVE_DEPRECATED ("use 'err_wrong_type_arg' instead")
173 OCTINTERP_API extern void
175  const char *name, const std::string& s,
176  bool is_error = true);
177 
178 OCTAVE_DEPRECATED ("use 'err_wrong_type_arg' or 'warn_wrong_type_arg' instead")
179 OCTINTERP_API extern void
180 gripe_wrong_type_arg (const char *name, const octave_value& tc,
181  bool is_error = true);
182 
183 OCTAVE_DEPRECATED ("use 'err_wrong_type_arg' instead")
184 OCTINTERP_API extern void
186  const char *name, const octave_value& tc,
187  bool is_error = true);
188 
189 OCTAVE_DEPRECATED ("use 'err_wrong_type_arg' instead")
190 OCTINTERP_API extern void
191 gripe_wrong_type_arg (const std::string& name, const octave_value& tc,
192  bool is_error = true);
193 
194 OCTAVE_DEPRECATED ("use 'err_wrong_type_arg' instead")
195 OCTINTERP_API extern void
197  const std::string& name, const octave_value& tc,
198  bool is_error = true);
199 
200 OCTAVE_DEPRECATED ("use 'err_wrong_type_arg' instead")
201 OCTINTERP_API extern void
202 gripe_wrong_type_arg (const char *s, bool is_error = true);
203 
204 OCTAVE_DEPRECATED ("use 'err_wrong_type_arg' instead")
205 OCTINTERP_API extern void
207  bool is_error = true);
208 
209 OCTAVE_DEPRECATED ("use 'err_wrong_type_arg' instead")
210 OCTINTERP_API extern void
211 gripe_wrong_type_arg (const std::string& s, bool is_error = true);
212 
213 OCTAVE_DEPRECATED ("use 'err_wrong_type_arg' instead")
214 OCTINTERP_API extern void
215 gripe_wrong_type_arg (octave::execution_exception& e, const std::string& s,
216  bool is_error = true);
217 
218 OCTAVE_DEPRECATED ("use 'err_wrong_type_arg' instead")
219 OCTINTERP_API extern void
220 gripe_wrong_type_arg (const octave_value& tc, bool is_error = true);
221 
222 OCTAVE_DEPRECATED ("use 'err_wrong_type_arg' instead")
223 OCTINTERP_API extern void
225  bool is_error = true);
226 
227 OCTAVE_DEPRECATED ("use 'err_wrong_type_arg_for_binary_op' instead")
228 OCTAVE_NORETURN OCTINTERP_API extern void
230 
231 OCTAVE_DEPRECATED ("use 'err_wrong_type_arg_for_unary_op' instead")
232 OCTAVE_NORETURN OCTINTERP_API extern void
234 
235 #endif
void warn_empty_arg(const char *name)
Definition: errwarn.cc:326
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
Octave interface to the compression and uncompression libraries.
Definition: aepbalance.cc:47
For example cd octave end example noindent changes the current working directory to file
Definition: dirfns.cc:120
void warn_invalid_value_specified(const char *name)
Definition: errwarn.cc:347
void err_nonbraced_cs_list_assignment(void)
Definition: errwarn.cc:80
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:116
OCTAVE_NORETURN OCTINTERP_API void gripe_not_implemented(const char *)
Definition: gripes.cc:149
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:582
void warn_logical_conversion(void)
Definition: errwarn.cc:353
void err_unrecognized_data_fmt(const char *name)
Definition: errwarn.cc:124
static OCTAVE_NORETURN void err_unrecognized_float_fmt(void)
Definition: data-conv.cc:614
void err_string_invalid(void)
Definition: errwarn.cc:118
STL namespace.
void err_wrong_type_arg_for_unary_op(const octave_value &op)
Definition: errwarn.cc:269
void err_square_matrix_required(const char *fcn, const char *name)
Definition: errwarn.cc:112
s
Definition: file-io.cc:2682
OCTINTERP_API void gripe_empty_arg(const char *name, bool is_error)
Definition: gripes.cc:74
i e
Definition: data.cc:2724
octave_function * fcn
Definition: ov-class.cc:1743
OCTINTERP_API void gripe_logical_conversion(void)
Definition: gripes.cc:122
void err_indexed_cs_list(void)
Definition: errwarn.cc:62
OCTINTERP_API void gripe_divide_by_zero(void)
Definition: gripes.cc:68
OCTAVE_EXPORT octave_value_list any number nd example oindent prints the prompt xample Pick a any number!nd example oindent and waits for the user to enter a value The string entered by the user is evaluated as an so it may be a literal a variable name
Definition: input.cc:871
OCTAVE_NORETURN OCTINTERP_API void gripe_2_or_3_dim_plot(void)
Definition: gripes.cc:40
#define OCTINTERP_API
Definition: mexproto.h:69
void warn_data_file_in_path(const std::string &fcn, const std::string &file)
Definition: errwarn.cc:300
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:106
void err_wrong_type_arg_for_binary_op(const octave_value &op)
Definition: errwarn.cc:262
void warn_disabled_feature(const std::string &fcn, const std::string &feature, const std::string &pkg)
Definition: errwarn.cc:308
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:320
void warn_complex_cmp(void)
Definition: errwarn.cc:293
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
may be zero for pure relative error test tem the relative tolerance must be greater than or equal to
Definition: Quad-opts.cc:233
void err_wrong_type_arg(const char *name, const char *s)
Definition: errwarn.cc:156
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:142
OCTAVE_NORETURN OCTINTERP_API void gripe_invalid_conversion(const std::string &from, const std::string &to)
Definition: gripes.cc:104
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:135
OCTAVE_NORETURN OCTINTERP_API void gripe_data_conversion(const char *from, const char *to)
Definition: gripes.cc:46
void warn_implicit_conversion(const char *id, const char *from, const char *to)
Definition: errwarn.cc:332
void warn_wrong_type_arg(const char *name, const octave_value &tc)
Definition: errwarn.cc:360
OCTAVE_NORETURN OCTINTERP_API void gripe_disabled_feature(const std::string &fcn, const std::string &feature, const std::string &pkg="Octave")
Definition: gripes.cc:60
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:83
OCTINTERP_API void gripe_data_file_in_path(const std::string &fcn, const std::string &file)
Definition: gripes.cc:52
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:129
void err_not_implemented(const char *fcn)
Definition: errwarn.cc:100
OCTAVE_NORETURN OCTINTERP_API void gripe_indexed_cs_list(void)
Definition: gripes.cc:98
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:110
void err_user_returned_invalid(const char *name)
Definition: errwarn.cc:136