# EXCEPTION proc

Source: https://ref.dm-lang.org/proc/EXCEPTION

### Format
> `EXCEPTION(value)`

### Args
> value: A text string (such as an error message) or other value identifying the exception.

This is used to create an /exception datum, and is shorthand for calling new/exception(value, __FILE__, __LINE__). The value you provide will be in exception.name.

### See also
- [try and catch statements](https://ref.dm-lang.org/proc/try.md)
- [throw statement](https://ref.dm-lang.org/proc/throw.md)
- [exception](https://ref.dm-lang.org/exception.md)
- [stddef.dm file](https://ref.dm-lang.org/appendix/stddefdotdm.md)
