Lines Matching refs:exceptions

26 This library allows to use advanced exceptions. It provides generic exceptions
27 (that are sent over the `hoa://Event/Exception` event channel), idle exceptions
29 to exceptions handler and group of exceptions (with transactions).
65 We propose a quick overview of how to use generic exceptions, how to listen all
66 thrown exceptions through events and how to use group of exceptions.
68 ### Generic exceptions
90 Previous exceptions are shown too, for instance:
111 ### Listen exceptions through events
113 Most exceptions in Hoa extend `Hoa\Exception\Exception`, which fire themselves
116 we can listen for all exceptions that are thrown in the application by writing:
127 Only the `Hoa\Exception\Idle` exceptions are not fired on the channel event.
131 Groups of exceptions are represented by the `Hoa\Exception\Group`. A group is an
132 exception that contains one or many exceptions. A transactional API is provided
133 to add more exceptions in the group with the following methods:
135 * `rollbackTransaction` to remove all newly added exceptions since
137 * `commitTransaction` to merge all newly added exceptions in the previous
139 * `hasUncommittedExceptions` to check whether they are pending exceptions or
143 exceptions can be thrown instead of one exception. Group can be nested too,
144 which is useful to represent a tree of exceptions. Thus:
147 // A group of exceptions.
163 * Contains the following exceptions:
174 * Contains the following exceptions:
181 The following example uses a transaction to add new exceptions in the group: