Lines Matching refs:new
79 $exception = new Hoa\Exception\Exception('Hello %s!', 0, 'world');
93 $previous = new Hoa\Exception\Exception('Hello previous.');
94 $exception = new Hoa\Exception\Exception('Hello %s!', 0, 'world', $previous);
148 $group = new Hoa\Exception\Group('Failed because of several reasons.');
149 $group['first'] = new Hoa\Exception\Exception('First reason');
150 $group['second'] = new Hoa\Exception\Exception('Second reason');
153 $group['third'] = new Hoa\Exception\Group('Third reason');
154 $group['third']['fourth'] = new Hoa\Exception\Exception('Fourth reason');
181 The following example uses a transaction to add new exceptions in the group:
184 $group = new Hoa\Exception\Group('Failed because of several reasons.');
185 $group[] = new Hoa\Exception\Exception('Always present.');
189 $group[] = new Hoa\Exception\Exception('Might be present.');