Updates docs about exceptions being on the stack/heap.
This commit is contained in:
parent
42f6cb465a
commit
790df95072
1 changed files with 2 additions and 1 deletions
|
|
@ -361,7 +361,8 @@ prefixed with an 'E', not 'T'. The `system <system.html>`_ module defines an
|
|||
exception hierarchy that you might want to stick to. Exceptions derive from
|
||||
E_Base, which provides the common interface.
|
||||
|
||||
Exceptions should be allocated on the heap because their lifetime is unknown.
|
||||
Exceptions have to be allocated on the heap because their lifetime is unknown.
|
||||
The compiler will prevent you from raising an exception created on the stack.
|
||||
All raised exceptions should at least specify the reason for being raised in
|
||||
the ``msg`` field.
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue