error
Manually generates a runtime error.
Syntax
-
error([X])
-
X
is any object
-
Description
error()
manually generates an error, immediately terminating the current evaluation. error(X)
uses string(X)
as the error message.
error
and fail
are synonyms.