Logtalk reference manual
Built-in method: throw/1
throw/1
Description
throw(Exception)
Throws an exception. This built-in predicate is declared as a private method and thus cannot be used as a message to an object.
Template and modes
throw(+nonvar)
Errors
- Exception is a variable:
instantiation_error
- Exception does not unify with the second argument of any call of
catch/3:
system_error
Examples
(none)
See also
catch/3