GNU Octave 10.1.0
A high-level interpreted language, primarily intended for numerical computations, mostly compatible with Matlab
 
Loading...
Searching...
No Matches
errwarn.h
Go to the documentation of this file.
1////////////////////////////////////////////////////////////////////////
2//
3// Copyright (C) 2016-2025 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;
37
39
40OCTAVE_END_NAMESPACE(octave)
41
42////////////////////////////////////////////////////////////////////////////////
43// Alphabetized list of common errors and warnings.
44////////////////////////////////////////////////////////////////////////////////
45
46OCTAVE_NORETURN extern OCTINTERP_API void
48
49OCTAVE_NORETURN extern OCTINTERP_API void
50err_data_conversion (const char *from, const char *to);
51
52OCTAVE_NORETURN extern OCTINTERP_API void
53err_disabled_feature (const std::string& fcn, const std::string& feature,
54 const std::string& pkg = "Octave");
55
56OCTAVE_NORETURN extern OCTINTERP_API void
58
59OCTAVE_NORETURN extern OCTINTERP_API void
60err_invalid_conversion (const std::string& from, const std::string& to);
61
62OCTAVE_NORETURN extern OCTINTERP_API void
64
65OCTAVE_NORETURN extern OCTINTERP_API void
67
68OCTAVE_NORETURN extern OCTINTERP_API void
70
71OCTAVE_NORETURN extern OCTINTERP_API void
73
74OCTAVE_NORETURN extern OCTINTERP_API void
77
78OCTAVE_NORETURN extern OCTINTERP_API void
79err_not_implemented (const char *);
80
81OCTAVE_NORETURN extern OCTINTERP_API void
83
84OCTAVE_NORETURN extern OCTINTERP_API void
85err_square_matrix_required (const char *fcn, const char *name);
86
87OCTAVE_NORETURN extern OCTINTERP_API void
89
90OCTAVE_NORETURN extern OCTINTERP_API void
91err_unrecognized_data_fmt (const char *name);
92
93OCTAVE_NORETURN extern OCTINTERP_API void
95
96OCTAVE_NORETURN extern OCTINTERP_API void
97err_user_returned_invalid (const char *name);
98
99OCTAVE_NORETURN extern OCTINTERP_API void
100err_user_supplied_eval (const char *name);
101
102OCTAVE_NORETURN extern OCTINTERP_API void
103err_user_supplied_eval (octave::execution_exception& ee, const char *name);
104
105OCTAVE_NORETURN extern OCTINTERP_API void
106err_wrong_type_arg (const char *name, const char *s);
107
108OCTAVE_NORETURN extern OCTINTERP_API void
109err_wrong_type_arg (octave::execution_exception& ee, const char *name,
110 const char *s);
111
112OCTAVE_NORETURN extern OCTINTERP_API void
113err_wrong_type_arg (const char *name, const std::string& s);
114
115OCTAVE_NORETURN extern OCTINTERP_API void
116err_wrong_type_arg (octave::execution_exception& ee, const char *name,
117 const std::string& s);
118
119OCTAVE_NORETURN extern OCTINTERP_API void
120err_wrong_type_arg (const char *name, const octave_value& tc);
121
122OCTAVE_NORETURN extern OCTINTERP_API void
123err_wrong_type_arg (octave::execution_exception& ee, const char *name,
124 const octave_value& tc);
125
126OCTAVE_NORETURN extern OCTINTERP_API void
127err_wrong_type_arg (const std::string& name, const octave_value& tc);
128
129OCTAVE_NORETURN extern OCTINTERP_API void
130err_wrong_type_arg (octave::execution_exception& ee, const std::string& name,
131 const octave_value& tc);
132
133OCTAVE_NORETURN extern OCTINTERP_API void
134err_wrong_type_arg (const char *s);
135
136OCTAVE_NORETURN extern OCTINTERP_API void
137err_wrong_type_arg (octave::execution_exception& ee, const char *s);
138
139OCTAVE_NORETURN extern OCTINTERP_API void
140err_wrong_type_arg (const std::string& s);
141
142OCTAVE_NORETURN extern OCTINTERP_API void
143err_wrong_type_arg (octave::execution_exception& ee, const std::string& s);
144
145OCTAVE_NORETURN extern OCTINTERP_API void
147
148OCTAVE_NORETURN extern OCTINTERP_API void
149err_wrong_type_arg (octave::execution_exception& ee, const octave_value& tc);
150
151OCTAVE_NORETURN extern OCTINTERP_API void
153
154OCTAVE_NORETURN extern OCTINTERP_API void
156
157extern OCTINTERP_API void
159
160extern OCTINTERP_API void
162
163extern OCTINTERP_API void
164warn_data_file_in_path (const std::string& fcn, const std::string& file);
165
166extern OCTINTERP_API void
167warn_disabled_feature (const std::string& fcn, const std::string& feature,
168 const std::string& pkg = "Octave");
169
170extern OCTINTERP_API void
171warn_empty_arg (const char *name);
172
173extern OCTINTERP_API void
174warn_empty_index (const std::string& type_name);
175
176extern OCTINTERP_API void
177warn_implicit_conversion (const char *id, const char *from, const char *to);
178
179extern OCTINTERP_API void
180warn_implicit_conversion (const std::string& id, const std::string& from,
181 const std::string& to);
182
183extern OCTINTERP_API void
184warn_invalid_value_specified (const char *name);
185
186extern OCTINTERP_API void
188
189extern OCTINTERP_API void
190warn_wrong_type_arg (const char *name, const octave_value& tc);
191
192#endif
Vector representing the dimensions (size) of an Array.
Definition dim-vector.h:90
OCTAVE_BEGIN_NAMESPACE(octave) static octave_value daspk_fcn
OCTAVE_NORETURN void err_nonconformant()
Definition errwarn.cc:95
OCTAVE_NORETURN void err_wrong_type_arg(const char *name, const char *s)
Definition errwarn.cc:166
OCTAVE_NORETURN void err_string_invalid()
Definition errwarn.cc:128
OCTAVE_NORETURN void err_nonbraced_cs_list_assignment()
Definition errwarn.cc:89
void warn_empty_index(const std::string &type_name)
Definition errwarn.cc:336
OCTAVE_NORETURN void err_range_invalid()
Definition errwarn.cc:116
void warn_wrong_type_arg(const char *name, const octave_value &tc)
Definition errwarn.cc:372
OCTAVE_NORETURN void err_data_conversion(const char *from, const char *to)
Definition errwarn.cc:47
OCTAVE_NORETURN void err_indexed_cs_list()
Definition errwarn.cc:65
void warn_invalid_value_specified(const char *name)
Definition errwarn.cc:359
OCTAVE_NORETURN void err_square_matrix_required(const char *fcn, const char *name)
Definition errwarn.cc:122
OCTAVE_NORETURN void err_unrecognized_float_fmt()
Definition errwarn.cc:140
void warn_complex_cmp()
Definition errwarn.cc:303
OCTAVE_NORETURN void err_invalid_conversion(const std::string &from, const std::string &to)
Definition errwarn.cc:71
OCTAVE_NORETURN void err_invalid_inquiry_subscript()
Definition errwarn.cc:77
void warn_array_as_logical(const dim_vector &dv)
Definition errwarn.cc:286
OCTAVE_NORETURN void err_user_returned_invalid(const char *name)
Definition errwarn.cc:146
OCTAVE_NORETURN void err_wrong_type_arg_for_unary_op(const octave_value &op)
Definition errwarn.cc:279
OCTAVE_NORETURN void err_invalid_structure_assignment()
Definition errwarn.cc:83
void warn_logical_conversion()
Definition errwarn.cc:365
OCTAVE_NORETURN void err_user_supplied_eval(const char *name)
Definition errwarn.cc:152
OCTAVE_NORETURN void err_wrong_type_arg_for_binary_op(const octave_value &op)
Definition errwarn.cc:272
OCTAVE_NORETURN void err_not_implemented(const char *)
Definition errwarn.cc:110
OCTAVE_NORETURN void err_2_or_3_dim_plot()
Definition errwarn.cc:41
void warn_empty_arg(const char *name)
Definition errwarn.cc:330
OCTAVE_NORETURN void err_unrecognized_data_fmt(const char *name)
Definition errwarn.cc:134
void warn_implicit_conversion(const char *id, const char *from, const char *to)
Definition errwarn.cc:344
void warn_data_file_in_path(const std::string &fcn, const std::string &file)
Definition errwarn.cc:310
OCTAVE_NORETURN void err_disabled_feature(const std::string &fcn, const std::string &feature, const std::string &pkg="Octave")
Definition errwarn.cc:53
void warn_disabled_feature(const std::string &fcn, const std::string &feature, const std::string &pkg="Octave")
Definition errwarn.cc:318