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
errwarn.h
Go to the documentation of this file.
1 /*
2 
3 Copyright (C) 2016-2017 Rik Wehbring
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 #if ! defined (octave_errwarn_h)
24 #define octave_errwarn_h 1
25 
26 #include "octave-config.h"
27 
28 #include <string>
29 
30 #include "lo-array-errwarn.h"
31 
32 class octave_value;
33 namespace octave
34 {
35  class execution_exception;
36 }
37 
38 ////////////////////////////////////////////////////////////////////////////////
39 // Alphabetized list of common errors and warnings.
40 ////////////////////////////////////////////////////////////////////////////////
41 
42 OCTAVE_NORETURN OCTINTERP_API extern void
43 err_2_or_3_dim_plot (void);
44 
45 OCTAVE_NORETURN OCTINTERP_API extern void
46 err_data_conversion (const char *from, const char *to);
47 
48 OCTAVE_NORETURN OCTINTERP_API extern void
49 err_disabled_feature (const std::string& fcn, const std::string& feature,
50  const std::string& pkg = "Octave");
51 
52 OCTAVE_NORETURN OCTINTERP_API extern void
53 err_indexed_cs_list (void);
54 
55 OCTAVE_NORETURN OCTINTERP_API extern void
56 err_invalid_conversion (const std::string& from, const std::string& to);
57 
58 OCTAVE_NORETURN OCTINTERP_API extern void
60 
61 OCTAVE_NORETURN OCTINTERP_API extern void
63 
64 OCTAVE_NORETURN OCTINTERP_API extern void
65 err_nonconformant (void);
66 
67 OCTAVE_NORETURN OCTINTERP_API extern void
70 
71 OCTAVE_NORETURN OCTINTERP_API extern void
72 err_not_implemented (const char *);
73 
74 OCTAVE_NORETURN OCTINTERP_API extern void
75 err_range_invalid (void);
76 
77 OCTAVE_NORETURN OCTINTERP_API extern void
78 err_square_matrix_required (const char *fcn, const char *name);
79 
80 OCTAVE_NORETURN OCTINTERP_API extern void
81 err_string_invalid (void);
82 
83 OCTAVE_NORETURN OCTINTERP_API extern void
84 err_unrecognized_data_fmt (const char *name);
85 
86 OCTAVE_NORETURN OCTINTERP_API extern void
88 
89 OCTAVE_NORETURN OCTINTERP_API extern void
90 err_user_returned_invalid (const char *name);
91 
92 OCTAVE_NORETURN OCTINTERP_API extern void
93 err_user_supplied_eval (const char *name);
94 
95 OCTAVE_NORETURN OCTINTERP_API extern void
96 err_user_supplied_eval (octave::execution_exception& e, const char *name);
97 
98 OCTAVE_NORETURN OCTINTERP_API extern void
99 err_wrong_type_arg (const char *name, const char *s);
100 
101 OCTAVE_NORETURN OCTINTERP_API extern void
102 err_wrong_type_arg (octave::execution_exception& e, const char *name,
103  const char *s);
104 
105 OCTAVE_NORETURN OCTINTERP_API extern void
106 err_wrong_type_arg (const char *name, const std::string& s);
107 
108 OCTAVE_NORETURN OCTINTERP_API extern void
109 err_wrong_type_arg (octave::execution_exception& e, const char *name,
110  const std::string& s);
111 
112 OCTAVE_NORETURN OCTINTERP_API extern void
113 err_wrong_type_arg (const char *name, const octave_value& tc);
114 
115 OCTAVE_NORETURN OCTINTERP_API extern void
116 err_wrong_type_arg (octave::execution_exception& e, const char *name,
117  const octave_value& tc);
118 
119 OCTAVE_NORETURN OCTINTERP_API extern void
120 err_wrong_type_arg (const std::string& name, const octave_value& tc);
121 
122 OCTAVE_NORETURN OCTINTERP_API extern void
123 err_wrong_type_arg (octave::execution_exception& e, const std::string& name,
124  const octave_value& tc);
125 
126 OCTAVE_NORETURN OCTINTERP_API extern void
127 err_wrong_type_arg (const char *s);
128 
129 OCTAVE_NORETURN OCTINTERP_API extern void
130 err_wrong_type_arg (octave::execution_exception& e, const char *s);
131 
132 OCTAVE_NORETURN OCTINTERP_API extern void
134 
135 OCTAVE_NORETURN OCTINTERP_API extern void
136 err_wrong_type_arg (octave::execution_exception& e, const std::string& s);
137 
138 OCTAVE_NORETURN OCTINTERP_API extern void
139 err_wrong_type_arg (const octave_value& tc);
140 
141 OCTAVE_NORETURN OCTINTERP_API extern void
142 err_wrong_type_arg (octave::execution_exception& e, const octave_value& tc);
143 
144 OCTAVE_NORETURN OCTINTERP_API extern void
146 
147 OCTAVE_NORETURN OCTINTERP_API extern void
149 
150 OCTINTERP_API extern void
152 
153 OCTINTERP_API extern void
154 warn_complex_cmp (void);
155 
156 OCTINTERP_API extern void
158 
159 OCTINTERP_API extern void
160 warn_disabled_feature (const std::string& fcn, const std::string& feature,
161  const std::string& pkg = "Octave");
162 
163 OCTINTERP_API extern void
164 warn_divide_by_zero (void);
165 
166 OCTINTERP_API extern void
167 warn_empty_arg (const char *name);
168 
169 OCTINTERP_API extern void
170 warn_implicit_conversion (const char *id, const char *from, const char *to);
171 
172 OCTINTERP_API extern void
173 warn_implicit_conversion (const std::string& id, const std::string& from,
174  const std::string& to);
175 
176 OCTINTERP_API extern void
177 warn_invalid_value_specified (const char *name);
178 
179 OCTINTERP_API extern void
181 
182 OCTINTERP_API extern void
183 warn_wrong_type_arg (const char *name, const octave_value& tc);
184 
185 #endif
OCTAVE_NORETURN OCTINTERP_API void err_wrong_type_arg_for_unary_op(const octave_value &op)
Definition: errwarn.cc:269
OCTAVE_NORETURN OCTINTERP_API void err_invalid_conversion(const std::string &from, const std::string &to)
Definition: errwarn.cc:68
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
OCTINTERP_API void warn_implicit_conversion(const char *id, const char *from, const char *to)
Definition: errwarn.cc:332
OCTAVE_NORETURN OCTINTERP_API void err_2_or_3_dim_plot(void)
Definition: errwarn.cc:38
OCTAVE_NORETURN OCTINTERP_API void err_data_conversion(const char *from, const char *to)
Definition: errwarn.cc:44
OCTAVE_NORETURN OCTINTERP_API void err_invalid_inquiry_subscript(void)
Definition: errwarn.cc:74
OCTINTERP_API void warn_logical_conversion(void)
Definition: errwarn.cc:353
s
Definition: file-io.cc:2682
OCTAVE_NORETURN OCTINTERP_API void err_user_returned_invalid(const char *name)
Definition: errwarn.cc:136
i e
Definition: data.cc:2724
octave_function * fcn
Definition: ov-class.cc:1743
OCTAVE_NORETURN OCTINTERP_API void err_square_matrix_required(const char *fcn, const char *name)
Definition: errwarn.cc:112
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 err_range_invalid(void)
Definition: errwarn.cc:106
#define OCTINTERP_API
Definition: mexproto.h:69
OCTINTERP_API void warn_complex_cmp(void)
Definition: errwarn.cc:293
OCTAVE_NORETURN OCTINTERP_API void err_not_implemented(const char *)
Definition: errwarn.cc:100
OCTAVE_NORETURN OCTINTERP_API void err_disabled_feature(const std::string &fcn, const std::string &feature, const std::string &pkg="Octave")
Definition: errwarn.cc:50
OCTAVE_NORETURN OCTINTERP_API void err_nonbraced_cs_list_assignment(void)
Definition: errwarn.cc:80
OCTINTERP_API void warn_divide_by_zero(void)
Definition: errwarn.cc:320
OCTAVE_NORETURN OCTINTERP_API void err_unrecognized_data_fmt(const char *name)
Definition: errwarn.cc:124
may be zero for pure relative error test tem the relative tolerance must be greater than or equal to
Definition: Quad-opts.cc:233
OCTAVE_NORETURN OCTINTERP_API void err_wrong_type_arg(const char *name, const char *s)
Definition: errwarn.cc:156
OCTAVE_NORETURN OCTINTERP_API void err_wrong_type_arg_for_binary_op(const octave_value &op)
Definition: errwarn.cc:262
OCTAVE_NORETURN OCTINTERP_API void err_indexed_cs_list(void)
Definition: errwarn.cc:62
OCTAVE_NORETURN OCTINTERP_API void err_string_invalid(void)
Definition: errwarn.cc:118
OCTINTERP_API void warn_invalid_value_specified(const char *name)
Definition: errwarn.cc:347
OCTAVE_NORETURN OCTINTERP_API void err_unrecognized_float_fmt(void)
Definition: errwarn.cc:130
OCTINTERP_API void warn_data_file_in_path(const std::string &fcn, const std::string &file)
Definition: errwarn.cc:300
OCTAVE_NORETURN OCTINTERP_API void err_user_supplied_eval(const char *name)
Definition: errwarn.cc:142
OCTINTERP_API void warn_wrong_type_arg(const char *name, const octave_value &tc)
Definition: errwarn.cc:360
Vector representing the dimensions (size) of an Array.
Definition: dim-vector.h:87
If this string is the system will ring the terminal sometimes it is useful to be able to print the original representation of the string
Definition: utils.cc:854
dim_vector dv
Definition: sub2ind.cc:263
OCTINTERP_API void warn_disabled_feature(const std::string &fcn, const std::string &feature, const std::string &pkg="Octave")
Definition: errwarn.cc:308
OCTINTERP_API void warn_empty_arg(const char *name)
Definition: errwarn.cc:326
OCTAVE_NORETURN OCTINTERP_API void err_nonconformant(void)
Definition: errwarn.cc:86
OCTINTERP_API void warn_array_as_logical(const dim_vector &dv)
Definition: errwarn.cc:276