
error - user-specified error termination

Calling sequence:

error(string)

Parameter:

string   --  character string

Summary:

error returns the error message given through string and effects an immediate
jump back to the interactive levelof MuPAD. The statements in a procedure
following the error call are not executed.

An error can be intercepted with the function traperror. If error is called
in a traperror environment then the jump back is made to the traperror
environment and not to the interactive level. error is a kernel function.

>>  error("Fault");

     Error: Fault

>>  f := proc(s) begin error(s) end_proc: sin(f("Fault"));

     Error: Fault [f]

See also:  traperror

