Next: , Previous: , Up: mpg-bpr   [Contents][Index]


11.3.182 raise_exception/1   deprecated

Synopsis

raise_exception(+Exception)

Description

If Exception matches one of the SICStus error terms listed in ref-ere-err, then the corresponding error term error(ISO_Error, SICStus_Error) is thrown. Otherwise, Exception is thrown as is.

New code should prefer the ISO-standard conformant throw/1.

Please note: For backward compatibility reasons, some Exception terms are automatically transformed into their corresponding ISO error/2 terms. The standard conformant throw/1 does not perform any such transformation, and is generally preferable.

This predicate has been marked as deprecated since there is another, better and standard-conforming alternative. However, we do not plan to remove it.

Arguments

Exception

term, must be nonvar

Exceptions

instantiation_error

Exception is unbound.

See Also

ref-ere, throw/1.


Send feedback on this subject.