# throw/1

## Description

    throw(Exception)

Throws an exception. This built-in method is declared private and thus cannot be used as a message to an object.

## Modes and number of proofs

    throw(+nonvar) - error

## 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, context/1, instantiation_error/0, type_error/2, domain_error/2, existence_error/2, permission_error/3, evaluation_error/1, representation_error/1 resource_error/1, syntax_error/1, system_error/0