Throws an exception. This built-in predicate is declared as a private method and thus cannot be used as a message to an object.
Modes and number of proofs¶
throw(+nonvar) - error
Exception is a variable:
Exception does not unify with the second argument of any call of catch/3: