Mention error in docs

This commit is contained in:
altrisi committed 2021-02-21 02:50:49 +01:00
1 parent 516de37dd2
commit ae70529f20
1 file changed
+2
@@ -286,6 +286,8 @@ You can specify the `parent` to be either an already existing exception from the
will not inherit from `user_defined_exception`, or specify a custom one, in which case your exception will inherit from will not inherit from `user_defined_exception`, or specify a custom one, in which case your exception will inherit from
`exception` > `user_defined_exception` > `parent` > `id`. `exception` > `user_defined_exception` > `parent` > `id`.
If you don't want your exception to be handled, you can use `error` as the `parent` to throw an error which cannot be handled.
Deprecated usage: `throw()` (without id): Specify at least the id of your exception Deprecated usage: `throw()` (without id): Specify at least the id of your exception
### `if(cond, expr, cond?, expr?, ..., default?)` ### `if(cond, expr, cond?, expr?, ..., default?)`