- Scilab help
- Scilab
- Scilab keywords
- TMPDIR
- abort
- add_demo
- argn
- banner
- boolean
- break
- clear
- clearfun
- clearglobal
- comp
- continue
- debug
- delbpt
- dispbpt
- edit
- errcatch
- errclear
- error
- error_table
- exists
- exit
- external
- extraction
- format
- funcprot
- funptr
- getdebuginfo
- getmd5
- getmemory
- getmodules
- getos
- getscilabmode
- getshell
- getvariablesonstack
- getversion
- gstacksize
- ieee
- insertion
- intppty
- inv_coeff
- iserror
- isglobal
- lasterror
- macr2lst
- macr2tree
- matrices
- matrix
- mode
- mtlb_mode
- names
- newfun
- null
- pause
- perl
- poly
- predef
- quit
- rational
- readgateway
- resume
- sciargs
- scilab
- setbpt
- stacksize
- startup
- symbols
- testmatrix
- type
- typename
- user
- varn
- ver
- warning
- what
- where
- whereami
- who
- who_user
- whos
- with_atlas
- with_javasci
- with_macros_source
- with_module
- with_pvm
- with_texmacs
- with_tk
Please note that the recommended version of Scilab is 2025.0.0. This page might be outdated.
See the recommended documentation of this function
error
error messages
Calling Sequence
error(message [,n]) error(n) error(n,pos)
Arguments
- message
a character string. The error message to be displayed.
- n
an integer. The number associated with the error message
- pos
an integer. a parameter for the error message
Description
error
function allow to issue an error message and to
handle the error. By defaut error
stops the current
execution and resume to the prompt level. This default can be changed
using the errcatch
or execstr(...,'errcatch')
functions.
error(message)
prints the character string contained in
message
. The number associated with the error message is
10000
error(message,n)
prints the character string contained in
message
. The number associated with the error message is
given by n
. This number should be greater than 10000.
error(n)
prints the predefined error message associated with
the error number n
.
Some predefined error messages require a parameter (see
error_table). In this case the pos
argument must be used error(n,pos)
to give the parameter
value. In the other cases the pos
argument is ignored.
see error_table for a list of error messages and the associated error numbers.
Examples
error('my error message') error(43) error(52,3)
See Also
<< errclear | Scilab | error_table >> |