Go to the first, previous, next, last section, table of contents.


error

error(message)
:: Forces Asir to cause an error and enter debugging mode.
message
string
% cat mod3
def mod3(A) {
        if ( type(A) >= 2 )
                error("invalid argument");
        else
                return A % 3;
}
end$
% asir
[0] load("mod3");
1
[3] mod3(5);
2
[4] mod3(x);
invalid argument
stopped in mod3 at line 3 in file "./mod3"
3                       error("invalid argument");
(debug) print A
A = x
(debug) quit
return to toplevel
[4] 
References
section debug.


Go to the first, previous, next, last section, table of contents.