26 #if defined (HAVE_CONFIG_H) 43 error (
"plot: can only plot in 2 or 3 dimensions");
49 error (
"unable to convert from %s to %s format", from, to);
56 "%s: '%s' found by searching load path",
64 error (
"%s: support for %s was unavailable or disabled when %s was built",
65 fcn.c_str (), feature.c_str (), pkg.c_str ());
78 error (
"%s: empty matrix is invalid as an argument",
name);
94 "implicit conversion from %s to %s",
95 from.c_str (), to.c_str ());
101 error (
"a cs-list cannot be further indexed");
107 error (
"invalid conversion from %s to %s", from.c_str (), to.c_str ());
113 error (
"invalid dimension inquiry of a non-existent value");
119 warning (
"invalid value specified for '%s'",
name);
126 "value not equal to 1 or 0 converted to logical 1");
132 error (
"invalid assignment to cs-list outside multiple assignment");
138 error (
"nonconformant matrices");
145 error (
"nonconformant matrices (op1 is %dx%d, op2 is %dx%d)",
158 error (
"%s: not supported on this system",
fcn);
164 error (
"range constant used in invalid context");
170 error (
"%s: argument must be a square matrix",
name);
176 error (
"std::string constant used in invalid context");
182 error (
"%s: unrecognized data format requested", warn_for);
188 error (
"unrecognized floating point format requested");
194 error (
"%s: user-supplied function returned invalid value",
name);
200 octave::execution_exception
e;
202 #if defined (HAVE_PRAGMA_GCC_DIAGNOSTIC) 203 # pragma GCC diagnostic push 204 # pragma GCC diagnostic ignored "-Wdeprecated-declarations" 209 #if defined (HAVE_PRAGMA_GCC_DIAGNOSTIC) 210 # pragma GCC diagnostic pop 218 error (
e,
"%s: evaluation of user-supplied function failed",
name);
225 "comparing complex numbers is not supported in Matlab");
231 octave::execution_exception
e;
233 #if defined (HAVE_PRAGMA_GCC_DIAGNOSTIC) 234 # pragma GCC diagnostic push 235 # pragma GCC diagnostic ignored "-Wdeprecated-declarations" 240 #if defined (HAVE_PRAGMA_GCC_DIAGNOSTIC) 241 # pragma GCC diagnostic pop 247 const char *
name,
const char *
s,
bool is_error)
250 error (
e,
"%s: wrong type argument '%s'",
name,
s);
258 octave::execution_exception
e;
260 #if defined (HAVE_PRAGMA_GCC_DIAGNOSTIC) 261 # pragma GCC diagnostic push 262 # pragma GCC diagnostic ignored "-Wdeprecated-declarations" 267 #if defined (HAVE_PRAGMA_GCC_DIAGNOSTIC) 268 # pragma GCC diagnostic pop 276 #if defined (HAVE_PRAGMA_GCC_DIAGNOSTIC) 277 # pragma GCC diagnostic push 278 # pragma GCC diagnostic ignored "-Wdeprecated-declarations" 283 #if defined (HAVE_PRAGMA_GCC_DIAGNOSTIC) 284 # pragma GCC diagnostic pop 292 octave::execution_exception
e;
294 #if defined (HAVE_PRAGMA_GCC_DIAGNOSTIC) 295 # pragma GCC diagnostic push 296 # pragma GCC diagnostic ignored "-Wdeprecated-declarations" 301 #if defined (HAVE_PRAGMA_GCC_DIAGNOSTIC) 302 # pragma GCC diagnostic pop 313 #if defined (HAVE_PRAGMA_GCC_DIAGNOSTIC) 314 # pragma GCC diagnostic push 315 # pragma GCC diagnostic ignored "-Wdeprecated-declarations" 320 #if defined (HAVE_PRAGMA_GCC_DIAGNOSTIC) 321 # pragma GCC diagnostic pop 329 octave::execution_exception
e;
331 #if defined (HAVE_PRAGMA_GCC_DIAGNOSTIC) 332 # pragma GCC diagnostic push 333 # pragma GCC diagnostic ignored "-Wdeprecated-declarations" 338 #if defined (HAVE_PRAGMA_GCC_DIAGNOSTIC) 339 # pragma GCC diagnostic pop 348 #if defined (HAVE_PRAGMA_GCC_DIAGNOSTIC) 349 # pragma GCC diagnostic push 350 # pragma GCC diagnostic ignored "-Wdeprecated-declarations" 355 #if defined (HAVE_PRAGMA_GCC_DIAGNOSTIC) 356 # pragma GCC diagnostic pop 363 octave::execution_exception
e;
365 #if defined (HAVE_PRAGMA_GCC_DIAGNOSTIC) 366 # pragma GCC diagnostic push 367 # pragma GCC diagnostic ignored "-Wdeprecated-declarations" 372 #if defined (HAVE_PRAGMA_GCC_DIAGNOSTIC) 373 # pragma GCC diagnostic pop 379 const char *
s,
bool is_error)
382 error (
e,
"wrong type argument '%s'",
s);
384 warning (
"wrong type argument '%s'",
s);
390 octave::execution_exception
e;
392 #if defined (HAVE_PRAGMA_GCC_DIAGNOSTIC) 393 # pragma GCC diagnostic push 394 # pragma GCC diagnostic ignored "-Wdeprecated-declarations" 399 #if defined (HAVE_PRAGMA_GCC_DIAGNOSTIC) 400 # pragma GCC diagnostic pop 408 #if defined (HAVE_PRAGMA_GCC_DIAGNOSTIC) 409 # pragma GCC diagnostic push 410 # pragma GCC diagnostic ignored "-Wdeprecated-declarations" 415 #if defined (HAVE_PRAGMA_GCC_DIAGNOSTIC) 416 # pragma GCC diagnostic pop 423 octave::execution_exception
e;
425 #if defined (HAVE_PRAGMA_GCC_DIAGNOSTIC) 426 # pragma GCC diagnostic push 427 # pragma GCC diagnostic ignored "-Wdeprecated-declarations" 432 #if defined (HAVE_PRAGMA_GCC_DIAGNOSTIC) 433 # pragma GCC diagnostic pop 443 #if defined (HAVE_PRAGMA_GCC_DIAGNOSTIC) 444 # pragma GCC diagnostic push 445 # pragma GCC diagnostic ignored "-Wdeprecated-declarations" 450 #if defined (HAVE_PRAGMA_GCC_DIAGNOSTIC) 451 # pragma GCC diagnostic pop 459 error (
"invalid operand '%s' for binary operator",
type.c_str ());
466 error (
"invalid operand '%s' for unary operator",
type.c_str ());
void gripe_implicit_conversion(const char *id, const char *from, const char *to)
void warning_with_id(const char *id, const char *fmt,...)
For example cd octave end example noindent changes the current working directory to file
void gripe_wrong_type_arg(const char *name, const char *s, bool is_error)
void gripe_wrong_type_arg_for_unary_op(const octave_value &op)
void gripe_wrong_type_arg_for_binary_op(const octave_value &op)
void gripe_nonconformant(void)
void error(const char *fmt,...)
void gripe_square_matrix_required(const char *name)
void gripe_invalid_inquiry_subscript(void)
void gripe_range_invalid(void)
void gripe_not_supported(const char *fcn)
void gripe_user_returned_invalid(const char *name)
void gripe_indexed_cs_list(void)
void gripe_data_file_in_path(const std::string &fcn, const std::string &file)
nd deftypefn *std::string name
void gripe_nonbraced_cs_list_assignment(void)
void gripe_not_implemented(const char *fcn)
void gripe_string_invalid(void)
void gripe_unrecognized_data_fmt(const char *warn_for)
void gripe_empty_arg(const char *name, bool is_error)
void gripe_data_conversion(const char *from, const char *to)
void warning(const char *fmt,...)
void gripe_logical_conversion(void)
void gripe_warn_complex_cmp(void)
void gripe_invalid_conversion(const std::string &from, const std::string &to)
void gripe_unrecognized_float_fmt(void)
void gripe_disabled_feature(const std::string &fcn, const std::string &feature, const std::string &pkg)
void gripe_invalid_value_specified(const char *name)
void gripe_2_or_3_dim_plot(void)
std::string type_name(void) const
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
void gripe_divide_by_zero(void)
void gripe_user_supplied_eval(const char *name)