unknown/2
[development]unknown(
-OldAction,
+NewAction)
Unifies OldAction with the current action on unknown procedures, and then sets the current action to NewAction.
[error,fail,trace,warning]
[error,fail,trace,warning]
, must be nonvar
This action determines what happens when an undefined predicate is
called, and user:unknown_predicate_handler/3
does not handle
the goal, by accessing the unknown
Prolog flag:
trace
fail
warning
error
| ?- unknown(Action, Action).
just returns Action without changing it.
Procedures that are known to be dynamic just fail when there are no clauses for them.
instantiation_error
type_error
domain_error
Undefined Predicates, ref-ere.