1--TEST--
2final public int ErrorException::getSeverity ( void );
3--CREDITS--
4marcosptf - <marcosptf@yahoo.com.br> - #phparty7 - @phpsp - novatec/2015 - sao paulo - br
5--INI--
6error_reporting = E_ALL
7--FILE--
8<?php
9
10const EXCEPTION_CODE_ERROR = 0;
11const EXCEPTION_SEVERITY_ERROR_MSG = "This exception severity is: ";
12const EXCEPTION_PARAM_MSG = "string message param";
13const EXCEPTION_TRACE_AS_STRING_MSG = "#0 {main}";
14
15try {
16    throw new ErrorException();
17} catch(ErrorException $e) {
18    echo EXCEPTION_SEVERITY_ERROR_MSG . $e->getSeverity();
19    var_dump($e->getSeverity() === E_ERROR);
20    var_dump($e->getMessage() === "");
21    var_dump($e->getCode() === 0);
22    var_dump($e->getPrevious() === NULL);
23    var_dump($e->getFile() === __FILE__);
24    var_dump($e->getTraceAsString() === EXCEPTION_TRACE_AS_STRING_MSG);
25}
26
27try {
28    throw new ErrorException(EXCEPTION_PARAM_MSG);
29} catch(ErrorException $e) {
30    echo EXCEPTION_SEVERITY_ERROR_MSG . $e->getSeverity();
31    var_dump($e->getSeverity() === E_ERROR);
32    var_dump($e->getMessage() === EXCEPTION_PARAM_MSG);
33    var_dump($e->getCode() === 0);
34    var_dump($e->getPrevious() === NULL);
35    var_dump($e->getFile() === __FILE__);
36    var_dump($e->getTraceAsString() === EXCEPTION_TRACE_AS_STRING_MSG);
37}
38
39try {
40    throw new ErrorException(EXCEPTION_PARAM_MSG, EXCEPTION_CODE_ERROR);
41} catch(ErrorException $e) {
42    echo EXCEPTION_SEVERITY_ERROR_MSG . $e->getSeverity();
43    var_dump($e->getSeverity() === E_ERROR);
44    var_dump($e->getMessage() === EXCEPTION_PARAM_MSG);
45    var_dump($e->getCode() === 0);
46    var_dump($e->getPrevious() === NULL);
47    var_dump($e->getFile() === __FILE__);
48    var_dump($e->getTraceAsString() === EXCEPTION_TRACE_AS_STRING_MSG);
49}
50
51try {
52    throw new ErrorException(EXCEPTION_PARAM_MSG, EXCEPTION_CODE_ERROR, E_ERROR);
53} catch(ErrorException $e) {
54    echo EXCEPTION_SEVERITY_ERROR_MSG . $e->getSeverity();
55    var_dump($e->getSeverity() === E_ERROR);
56    var_dump($e->getMessage() === EXCEPTION_PARAM_MSG);
57    var_dump($e->getCode() === 0);
58    var_dump($e->getPrevious() === NULL);
59    var_dump($e->getFile() === __FILE__);
60    var_dump($e->getTraceAsString() === EXCEPTION_TRACE_AS_STRING_MSG);
61}
62
63try {
64    throw new ErrorException(EXCEPTION_PARAM_MSG, EXCEPTION_CODE_ERROR, E_WARNING);
65} catch(ErrorException $e) {
66    echo EXCEPTION_SEVERITY_ERROR_MSG . $e->getSeverity();
67    var_dump($e->getSeverity() === E_WARNING);
68    var_dump($e->getMessage() === EXCEPTION_PARAM_MSG);
69    var_dump($e->getCode() === 0);
70    var_dump($e->getPrevious() === NULL);
71    var_dump($e->getFile() === __FILE__);
72    var_dump($e->getTraceAsString() === EXCEPTION_TRACE_AS_STRING_MSG);
73}
74
75try {
76    throw new ErrorException(EXCEPTION_PARAM_MSG, EXCEPTION_CODE_ERROR, E_PARSE);
77} catch(ErrorException $e) {
78    echo EXCEPTION_SEVERITY_ERROR_MSG . $e->getSeverity();
79    var_dump($e->getSeverity() === E_PARSE);
80    var_dump($e->getMessage() === EXCEPTION_PARAM_MSG);
81    var_dump($e->getCode() === 0);
82    var_dump($e->getPrevious() === NULL);
83    var_dump($e->getFile() === __FILE__);
84    var_dump($e->getTraceAsString() === EXCEPTION_TRACE_AS_STRING_MSG);
85}
86
87try {
88    throw new ErrorException(EXCEPTION_PARAM_MSG, EXCEPTION_CODE_ERROR, E_NOTICE);
89} catch(ErrorException $e) {
90    echo EXCEPTION_SEVERITY_ERROR_MSG . $e->getSeverity();
91    var_dump($e->getSeverity() === E_NOTICE);
92    var_dump($e->getMessage() === EXCEPTION_PARAM_MSG);
93    var_dump($e->getCode() === 0);
94    var_dump($e->getPrevious() === NULL);
95    var_dump($e->getFile() === __FILE__);
96    var_dump($e->getTraceAsString() === EXCEPTION_TRACE_AS_STRING_MSG);
97}
98
99try {
100    throw new ErrorException(EXCEPTION_PARAM_MSG, EXCEPTION_CODE_ERROR, E_CORE_ERROR);
101} catch(ErrorException $e) {
102    echo EXCEPTION_SEVERITY_ERROR_MSG . $e->getSeverity();
103    var_dump($e->getSeverity() === E_CORE_ERROR);
104    var_dump($e->getMessage() === EXCEPTION_PARAM_MSG);
105    var_dump($e->getCode() === 0);
106    var_dump($e->getPrevious() === NULL);
107    var_dump($e->getFile() === __FILE__);
108    var_dump($e->getTraceAsString() === EXCEPTION_TRACE_AS_STRING_MSG);
109}
110
111try {
112    throw new ErrorException(EXCEPTION_PARAM_MSG, EXCEPTION_CODE_ERROR, E_CORE_WARNING);
113} catch(ErrorException $e) {
114    echo EXCEPTION_SEVERITY_ERROR_MSG . $e->getSeverity();
115    var_dump($e->getSeverity() === E_CORE_WARNING);
116    var_dump($e->getMessage() === EXCEPTION_PARAM_MSG);
117    var_dump($e->getCode() === 0);
118    var_dump($e->getPrevious() === NULL);
119    var_dump($e->getFile() === __FILE__);
120    var_dump($e->getTraceAsString() === EXCEPTION_TRACE_AS_STRING_MSG);
121}
122
123try {
124    throw new ErrorException(EXCEPTION_PARAM_MSG, EXCEPTION_CODE_ERROR, E_CORE_WARNING);
125} catch(ErrorException $e) {
126    echo EXCEPTION_SEVERITY_ERROR_MSG . $e->getSeverity();
127    var_dump($e->getSeverity() === E_CORE_WARNING);
128    var_dump($e->getMessage() === EXCEPTION_PARAM_MSG);
129    var_dump($e->getCode() === 0);
130    var_dump($e->getPrevious() === NULL);
131    var_dump($e->getFile() === __FILE__);
132    var_dump($e->getTraceAsString() === EXCEPTION_TRACE_AS_STRING_MSG);
133}
134
135try {
136    throw new ErrorException(EXCEPTION_PARAM_MSG, EXCEPTION_CODE_ERROR, E_COMPILE_ERROR);
137} catch(ErrorException $e) {
138    echo EXCEPTION_SEVERITY_ERROR_MSG . $e->getSeverity();
139    var_dump($e->getSeverity() === E_COMPILE_ERROR);
140    var_dump($e->getMessage() === EXCEPTION_PARAM_MSG);
141    var_dump($e->getCode() === 0);
142    var_dump($e->getPrevious() === NULL);
143    var_dump($e->getFile() === __FILE__);
144    var_dump($e->getTraceAsString() === EXCEPTION_TRACE_AS_STRING_MSG);
145}
146
147try {
148    throw new ErrorException(EXCEPTION_PARAM_MSG, EXCEPTION_CODE_ERROR, E_COMPILE_WARNING);
149} catch(ErrorException $e) {
150    echo EXCEPTION_SEVERITY_ERROR_MSG . $e->getSeverity();
151    var_dump($e->getSeverity() === E_COMPILE_WARNING);
152    var_dump($e->getMessage() === EXCEPTION_PARAM_MSG);
153    var_dump($e->getCode() === 0);
154    var_dump($e->getPrevious() === NULL);
155    var_dump($e->getFile() === __FILE__);
156    var_dump($e->getTraceAsString() === EXCEPTION_TRACE_AS_STRING_MSG);
157}
158
159try {
160    throw new ErrorException(EXCEPTION_PARAM_MSG, EXCEPTION_CODE_ERROR, E_USER_ERROR);
161} catch(ErrorException $e) {
162    echo EXCEPTION_SEVERITY_ERROR_MSG . $e->getSeverity();
163    var_dump($e->getSeverity() === E_USER_ERROR);
164    var_dump($e->getMessage() === EXCEPTION_PARAM_MSG);
165    var_dump($e->getCode() === 0);
166    var_dump($e->getPrevious() === NULL);
167    var_dump($e->getFile() === __FILE__);
168    var_dump($e->getTraceAsString() === EXCEPTION_TRACE_AS_STRING_MSG);
169}
170
171try {
172    throw new ErrorException(EXCEPTION_PARAM_MSG, EXCEPTION_CODE_ERROR, E_USER_WARNING);
173} catch(ErrorException $e) {
174    echo EXCEPTION_SEVERITY_ERROR_MSG . $e->getSeverity();
175    var_dump($e->getSeverity() === E_USER_WARNING);
176    var_dump($e->getMessage() === EXCEPTION_PARAM_MSG);
177    var_dump($e->getCode() === 0);
178    var_dump($e->getPrevious() === NULL);
179    var_dump($e->getFile() === __FILE__);
180    var_dump($e->getTraceAsString() === EXCEPTION_TRACE_AS_STRING_MSG);
181}
182
183try {
184    throw new ErrorException(EXCEPTION_PARAM_MSG, EXCEPTION_CODE_ERROR, E_USER_NOTICE);
185} catch(ErrorException $e) {
186    echo EXCEPTION_SEVERITY_ERROR_MSG . $e->getSeverity();
187    var_dump($e->getSeverity() === E_USER_NOTICE);
188    var_dump($e->getMessage() === EXCEPTION_PARAM_MSG);
189    var_dump($e->getCode() === 0);
190    var_dump($e->getPrevious() === NULL);
191    var_dump($e->getFile() === __FILE__);
192    var_dump($e->getTraceAsString() === EXCEPTION_TRACE_AS_STRING_MSG);
193}
194
195try {
196    throw new ErrorException(EXCEPTION_PARAM_MSG, EXCEPTION_CODE_ERROR, E_RECOVERABLE_ERROR);
197} catch(ErrorException $e) {
198    echo EXCEPTION_SEVERITY_ERROR_MSG . $e->getSeverity();
199    var_dump($e->getSeverity() === E_RECOVERABLE_ERROR);
200    var_dump($e->getMessage() === EXCEPTION_PARAM_MSG);
201    var_dump($e->getCode() === 0);
202    var_dump($e->getPrevious() === NULL);
203    var_dump($e->getFile() === __FILE__);
204    var_dump($e->getTraceAsString() === EXCEPTION_TRACE_AS_STRING_MSG);
205}
206
207try {
208    throw new ErrorException(EXCEPTION_PARAM_MSG, EXCEPTION_CODE_ERROR, E_DEPRECATED);
209} catch(ErrorException $e) {
210    echo EXCEPTION_SEVERITY_ERROR_MSG . $e->getSeverity();
211    var_dump($e->getSeverity() === E_DEPRECATED);
212    var_dump($e->getMessage() === EXCEPTION_PARAM_MSG);
213    var_dump($e->getCode() === 0);
214    var_dump($e->getPrevious() === NULL);
215    var_dump($e->getFile() === __FILE__);
216    var_dump($e->getTraceAsString() === EXCEPTION_TRACE_AS_STRING_MSG);
217}
218
219try {
220    throw new ErrorException(EXCEPTION_PARAM_MSG, EXCEPTION_CODE_ERROR, E_USER_DEPRECATED);
221} catch(ErrorException $e) {
222    echo EXCEPTION_SEVERITY_ERROR_MSG . $e->getSeverity();
223    var_dump($e->getSeverity() === E_USER_DEPRECATED);
224    var_dump($e->getMessage() === EXCEPTION_PARAM_MSG);
225    var_dump($e->getCode() === 0);
226    var_dump($e->getPrevious() === NULL);
227    var_dump($e->getFile() === __FILE__);
228    var_dump($e->getTraceAsString() === EXCEPTION_TRACE_AS_STRING_MSG);
229}
230
231try {
232    throw new ErrorException(EXCEPTION_PARAM_MSG, EXCEPTION_CODE_ERROR, E_ERROR, __FILE__);
233} catch(ErrorException $e) {
234    echo EXCEPTION_SEVERITY_ERROR_MSG . $e->getSeverity();
235    var_dump($e->getSeverity() === E_ERROR);
236    var_dump($e->getMessage() === EXCEPTION_PARAM_MSG);
237    var_dump($e->getCode() === 0);
238    var_dump($e->getPrevious() === NULL);
239    var_dump($e->getFile() === __FILE__);
240    var_dump($e->getTraceAsString() === EXCEPTION_TRACE_AS_STRING_MSG);
241}
242
243try {
244    throw new ErrorException(EXCEPTION_PARAM_MSG, EXCEPTION_CODE_ERROR, E_WARNING, __FILE__);
245} catch(ErrorException $e) {
246    echo EXCEPTION_SEVERITY_ERROR_MSG . $e->getSeverity();
247    var_dump($e->getSeverity() === E_WARNING);
248    var_dump($e->getMessage() === EXCEPTION_PARAM_MSG);
249    var_dump($e->getCode() === 0);
250    var_dump($e->getPrevious() === NULL);
251    var_dump($e->getFile() === __FILE__);
252    var_dump($e->getTraceAsString() === EXCEPTION_TRACE_AS_STRING_MSG);
253}
254
255try {
256    throw new ErrorException(EXCEPTION_PARAM_MSG, EXCEPTION_CODE_ERROR, E_PARSE, __FILE__);
257} catch(ErrorException $e) {
258    echo EXCEPTION_SEVERITY_ERROR_MSG . $e->getSeverity();
259    var_dump($e->getSeverity() === E_PARSE);
260    var_dump($e->getMessage() === EXCEPTION_PARAM_MSG);
261    var_dump($e->getCode() === 0);
262    var_dump($e->getPrevious() === NULL);
263    var_dump($e->getFile() === __FILE__);
264    var_dump($e->getTraceAsString() === EXCEPTION_TRACE_AS_STRING_MSG);
265}
266
267try {
268    throw new ErrorException(EXCEPTION_PARAM_MSG, EXCEPTION_CODE_ERROR, E_NOTICE, __FILE__);
269} catch(ErrorException $e) {
270    echo EXCEPTION_SEVERITY_ERROR_MSG . $e->getSeverity();
271    var_dump($e->getSeverity() === E_NOTICE);
272    var_dump($e->getMessage() === EXCEPTION_PARAM_MSG);
273    var_dump($e->getCode() === 0);
274    var_dump($e->getPrevious() === NULL);
275    var_dump($e->getFile() === __FILE__);
276    var_dump($e->getTraceAsString() === EXCEPTION_TRACE_AS_STRING_MSG);
277}
278
279try {
280    throw new ErrorException(EXCEPTION_PARAM_MSG, EXCEPTION_CODE_ERROR, E_CORE_ERROR, __FILE__);
281} catch(ErrorException $e) {
282    echo EXCEPTION_SEVERITY_ERROR_MSG . $e->getSeverity();
283    var_dump($e->getSeverity() === E_CORE_ERROR);
284    var_dump($e->getMessage() === EXCEPTION_PARAM_MSG);
285    var_dump($e->getCode() === 0);
286    var_dump($e->getPrevious() === NULL);
287    var_dump($e->getFile() === __FILE__);
288    var_dump($e->getTraceAsString() === EXCEPTION_TRACE_AS_STRING_MSG);
289}
290
291try {
292    throw new ErrorException(EXCEPTION_PARAM_MSG, EXCEPTION_CODE_ERROR, E_CORE_WARNING, __FILE__);
293} catch(ErrorException $e) {
294    echo EXCEPTION_SEVERITY_ERROR_MSG . $e->getSeverity();
295    var_dump($e->getSeverity() === E_CORE_WARNING);
296    var_dump($e->getMessage() === EXCEPTION_PARAM_MSG);
297    var_dump($e->getCode() === 0);
298    var_dump($e->getPrevious() === NULL);
299    var_dump($e->getFile() === __FILE__);
300    var_dump($e->getTraceAsString() === EXCEPTION_TRACE_AS_STRING_MSG);
301}
302
303try {
304    throw new ErrorException(EXCEPTION_PARAM_MSG, EXCEPTION_CODE_ERROR, E_CORE_WARNING, __FILE__);
305} catch(ErrorException $e) {
306    echo EXCEPTION_SEVERITY_ERROR_MSG . $e->getSeverity();
307    var_dump($e->getSeverity() === E_CORE_WARNING);
308    var_dump($e->getMessage() === EXCEPTION_PARAM_MSG);
309    var_dump($e->getCode() === 0);
310    var_dump($e->getPrevious() === NULL);
311    var_dump($e->getFile() === __FILE__);
312    var_dump($e->getTraceAsString() === EXCEPTION_TRACE_AS_STRING_MSG);
313}
314
315try {
316    throw new ErrorException(EXCEPTION_PARAM_MSG, EXCEPTION_CODE_ERROR, E_COMPILE_ERROR, __FILE__);
317} catch(ErrorException $e) {
318    echo EXCEPTION_SEVERITY_ERROR_MSG . $e->getSeverity();
319    var_dump($e->getSeverity() === E_COMPILE_ERROR);
320    var_dump($e->getMessage() === EXCEPTION_PARAM_MSG);
321    var_dump($e->getCode() === 0);
322    var_dump($e->getPrevious() === NULL);
323    var_dump($e->getFile() === __FILE__);
324    var_dump($e->getTraceAsString() === EXCEPTION_TRACE_AS_STRING_MSG);
325}
326
327try {
328    throw new ErrorException(EXCEPTION_PARAM_MSG, EXCEPTION_CODE_ERROR, E_COMPILE_WARNING, __FILE__);
329} catch(ErrorException $e) {
330    echo EXCEPTION_SEVERITY_ERROR_MSG . $e->getSeverity();
331    var_dump($e->getSeverity() === E_COMPILE_WARNING);
332    var_dump($e->getMessage() === EXCEPTION_PARAM_MSG);
333    var_dump($e->getCode() === 0);
334    var_dump($e->getPrevious() === NULL);
335    var_dump($e->getFile() === __FILE__);
336    var_dump($e->getTraceAsString() === EXCEPTION_TRACE_AS_STRING_MSG);
337}
338
339try {
340    throw new ErrorException(EXCEPTION_PARAM_MSG, EXCEPTION_CODE_ERROR, E_USER_ERROR, __FILE__);
341} catch(ErrorException $e) {
342    echo EXCEPTION_SEVERITY_ERROR_MSG . $e->getSeverity();
343    var_dump($e->getSeverity() === E_USER_ERROR);
344    var_dump($e->getMessage() === EXCEPTION_PARAM_MSG);
345    var_dump($e->getCode() === 0);
346    var_dump($e->getPrevious() === NULL);
347    var_dump($e->getFile() === __FILE__);
348    var_dump($e->getTraceAsString() === EXCEPTION_TRACE_AS_STRING_MSG);
349}
350
351try {
352    throw new ErrorException(EXCEPTION_PARAM_MSG, EXCEPTION_CODE_ERROR, E_USER_WARNING, __FILE__);
353} catch(ErrorException $e) {
354    echo EXCEPTION_SEVERITY_ERROR_MSG . $e->getSeverity();
355    var_dump($e->getSeverity() === E_USER_WARNING);
356    var_dump($e->getMessage() === EXCEPTION_PARAM_MSG);
357    var_dump($e->getCode() === 0);
358    var_dump($e->getPrevious() === NULL);
359    var_dump($e->getFile() === __FILE__);
360    var_dump($e->getTraceAsString() === EXCEPTION_TRACE_AS_STRING_MSG);
361}
362
363try {
364    throw new ErrorException(EXCEPTION_PARAM_MSG, EXCEPTION_CODE_ERROR, E_USER_NOTICE, __FILE__);
365} catch(ErrorException $e) {
366    echo EXCEPTION_SEVERITY_ERROR_MSG . $e->getSeverity();
367    var_dump($e->getSeverity() === E_USER_NOTICE);
368    var_dump($e->getMessage() === EXCEPTION_PARAM_MSG);
369    var_dump($e->getCode() === 0);
370    var_dump($e->getPrevious() === NULL);
371    var_dump($e->getFile() === __FILE__);
372    var_dump($e->getTraceAsString() === EXCEPTION_TRACE_AS_STRING_MSG);
373}
374
375try {
376    throw new ErrorException(EXCEPTION_PARAM_MSG, EXCEPTION_CODE_ERROR, E_RECOVERABLE_ERROR, __FILE__);
377} catch(ErrorException $e) {
378    echo EXCEPTION_SEVERITY_ERROR_MSG . $e->getSeverity();
379    var_dump($e->getSeverity() === E_RECOVERABLE_ERROR);
380    var_dump($e->getMessage() === EXCEPTION_PARAM_MSG);
381    var_dump($e->getCode() === 0);
382    var_dump($e->getPrevious() === NULL);
383    var_dump($e->getFile() === __FILE__);
384    var_dump($e->getTraceAsString() === EXCEPTION_TRACE_AS_STRING_MSG);
385}
386
387try {
388    throw new ErrorException(EXCEPTION_PARAM_MSG, EXCEPTION_CODE_ERROR, E_DEPRECATED, __FILE__);
389} catch(ErrorException $e) {
390    echo EXCEPTION_SEVERITY_ERROR_MSG . $e->getSeverity();
391    var_dump($e->getSeverity() === E_DEPRECATED);
392    var_dump($e->getMessage() === EXCEPTION_PARAM_MSG);
393    var_dump($e->getCode() === 0);
394    var_dump($e->getPrevious() === NULL);
395    var_dump($e->getFile() === __FILE__);
396    var_dump($e->getTraceAsString() === EXCEPTION_TRACE_AS_STRING_MSG);
397}
398
399try {
400    throw new ErrorException(EXCEPTION_PARAM_MSG, EXCEPTION_CODE_ERROR, E_USER_DEPRECATED, __FILE__);
401} catch(ErrorException $e) {
402    echo EXCEPTION_SEVERITY_ERROR_MSG . $e->getSeverity();
403    var_dump($e->getSeverity() === E_USER_DEPRECATED);
404    var_dump($e->getMessage() === EXCEPTION_PARAM_MSG);
405    var_dump($e->getCode() === 0);
406    var_dump($e->getPrevious() === NULL);
407    var_dump($e->getFile() === __FILE__);
408    var_dump($e->getTraceAsString() === EXCEPTION_TRACE_AS_STRING_MSG);
409}
410
411try {
412    throw new ErrorException(EXCEPTION_PARAM_MSG, EXCEPTION_CODE_ERROR, E_ERROR, __FILE__, __LINE__);
413} catch(ErrorException $e) {
414    echo EXCEPTION_SEVERITY_ERROR_MSG . $e->getSeverity();
415    var_dump($e->getSeverity() === E_ERROR);
416    var_dump($e->getMessage() === EXCEPTION_PARAM_MSG);
417    var_dump($e->getCode() === 0);
418    var_dump($e->getPrevious() === NULL);
419    var_dump($e->getFile() === __FILE__);
420    var_dump($e->getTraceAsString() === EXCEPTION_TRACE_AS_STRING_MSG);
421}
422
423try {
424    throw new ErrorException(EXCEPTION_PARAM_MSG, EXCEPTION_CODE_ERROR, E_WARNING, __FILE__, __LINE__);
425} catch(ErrorException $e) {
426    echo EXCEPTION_SEVERITY_ERROR_MSG . $e->getSeverity();
427    var_dump($e->getSeverity() === E_WARNING);
428    var_dump($e->getMessage() === EXCEPTION_PARAM_MSG);
429    var_dump($e->getCode() === 0);
430    var_dump($e->getPrevious() === NULL);
431    var_dump($e->getFile() === __FILE__);
432    var_dump($e->getTraceAsString() === EXCEPTION_TRACE_AS_STRING_MSG);
433}
434
435try {
436    throw new ErrorException(EXCEPTION_PARAM_MSG, EXCEPTION_CODE_ERROR, E_PARSE, __FILE__, __LINE__);
437} catch(ErrorException $e) {
438    echo EXCEPTION_SEVERITY_ERROR_MSG . $e->getSeverity();
439    var_dump($e->getSeverity() === E_PARSE);
440    var_dump($e->getMessage() === EXCEPTION_PARAM_MSG);
441    var_dump($e->getCode() === 0);
442    var_dump($e->getPrevious() === NULL);
443    var_dump($e->getFile() === __FILE__);
444    var_dump($e->getTraceAsString() === EXCEPTION_TRACE_AS_STRING_MSG);
445}
446
447try {
448    throw new ErrorException(EXCEPTION_PARAM_MSG, EXCEPTION_CODE_ERROR, E_NOTICE, __FILE__, __LINE__);
449} catch(ErrorException $e) {
450    echo EXCEPTION_SEVERITY_ERROR_MSG . $e->getSeverity();
451    var_dump($e->getSeverity() === E_NOTICE);
452    var_dump($e->getMessage() === EXCEPTION_PARAM_MSG);
453    var_dump($e->getCode() === 0);
454    var_dump($e->getPrevious() === NULL);
455    var_dump($e->getFile() === __FILE__);
456    var_dump($e->getTraceAsString() === EXCEPTION_TRACE_AS_STRING_MSG);
457}
458
459try {
460    throw new ErrorException(EXCEPTION_PARAM_MSG, EXCEPTION_CODE_ERROR, E_CORE_ERROR, __FILE__, __LINE__);
461} catch(ErrorException $e) {
462    echo EXCEPTION_SEVERITY_ERROR_MSG . $e->getSeverity();
463    var_dump($e->getSeverity() === E_CORE_ERROR);
464    var_dump($e->getMessage() === EXCEPTION_PARAM_MSG);
465    var_dump($e->getCode() === 0);
466    var_dump($e->getPrevious() === NULL);
467    var_dump($e->getFile() === __FILE__);
468    var_dump($e->getTraceAsString() === EXCEPTION_TRACE_AS_STRING_MSG);
469}
470
471try {
472    throw new ErrorException(EXCEPTION_PARAM_MSG, EXCEPTION_CODE_ERROR, E_CORE_WARNING, __FILE__, __LINE__);
473} catch(ErrorException $e) {
474    echo EXCEPTION_SEVERITY_ERROR_MSG . $e->getSeverity();
475    var_dump($e->getSeverity() === E_CORE_WARNING);
476    var_dump($e->getMessage() === EXCEPTION_PARAM_MSG);
477    var_dump($e->getCode() === 0);
478    var_dump($e->getPrevious() === NULL);
479    var_dump($e->getFile() === __FILE__);
480    var_dump($e->getTraceAsString() === EXCEPTION_TRACE_AS_STRING_MSG);
481}
482
483try {
484    throw new ErrorException(EXCEPTION_PARAM_MSG, EXCEPTION_CODE_ERROR, E_CORE_WARNING, __FILE__, __LINE__);
485} catch(ErrorException $e) {
486    echo EXCEPTION_SEVERITY_ERROR_MSG . $e->getSeverity();
487    var_dump($e->getSeverity() === E_CORE_WARNING);
488    var_dump($e->getMessage() === EXCEPTION_PARAM_MSG);
489    var_dump($e->getCode() === 0);
490    var_dump($e->getPrevious() === NULL);
491    var_dump($e->getFile() === __FILE__);
492    var_dump($e->getTraceAsString() === EXCEPTION_TRACE_AS_STRING_MSG);
493}
494
495try {
496    throw new ErrorException(EXCEPTION_PARAM_MSG, EXCEPTION_CODE_ERROR, E_COMPILE_ERROR, __FILE__, __LINE__);
497} catch(ErrorException $e) {
498    echo EXCEPTION_SEVERITY_ERROR_MSG . $e->getSeverity();
499    var_dump($e->getSeverity() === E_COMPILE_ERROR);
500    var_dump($e->getMessage() === EXCEPTION_PARAM_MSG);
501    var_dump($e->getCode() === 0);
502    var_dump($e->getPrevious() === NULL);
503    var_dump($e->getFile() === __FILE__);
504    var_dump($e->getTraceAsString() === EXCEPTION_TRACE_AS_STRING_MSG);
505}
506
507try {
508    throw new ErrorException(EXCEPTION_PARAM_MSG, EXCEPTION_CODE_ERROR, E_COMPILE_WARNING, __FILE__, __LINE__);
509} catch(ErrorException $e) {
510    echo EXCEPTION_SEVERITY_ERROR_MSG . $e->getSeverity();
511    var_dump($e->getSeverity() === E_COMPILE_WARNING);
512    var_dump($e->getMessage() === EXCEPTION_PARAM_MSG);
513    var_dump($e->getCode() === 0);
514    var_dump($e->getPrevious() === NULL);
515    var_dump($e->getFile() === __FILE__);
516    var_dump($e->getTraceAsString() === EXCEPTION_TRACE_AS_STRING_MSG);
517}
518
519try {
520    throw new ErrorException(EXCEPTION_PARAM_MSG, EXCEPTION_CODE_ERROR, E_USER_ERROR, __FILE__, __LINE__);
521} catch(ErrorException $e) {
522    echo EXCEPTION_SEVERITY_ERROR_MSG . $e->getSeverity();
523    var_dump($e->getSeverity() === E_USER_ERROR);
524    var_dump($e->getMessage() === EXCEPTION_PARAM_MSG);
525    var_dump($e->getCode() === 0);
526    var_dump($e->getPrevious() === NULL);
527    var_dump($e->getFile() === __FILE__);
528    var_dump($e->getTraceAsString() === EXCEPTION_TRACE_AS_STRING_MSG);
529}
530
531try {
532    throw new ErrorException(EXCEPTION_PARAM_MSG, EXCEPTION_CODE_ERROR, E_USER_WARNING, __FILE__, __LINE__);
533} catch(ErrorException $e) {
534    echo EXCEPTION_SEVERITY_ERROR_MSG . $e->getSeverity();
535    var_dump($e->getSeverity() === E_USER_WARNING);
536    var_dump($e->getMessage() === EXCEPTION_PARAM_MSG);
537    var_dump($e->getCode() === 0);
538    var_dump($e->getPrevious() === NULL);
539    var_dump($e->getFile() === __FILE__);
540    var_dump($e->getTraceAsString() === EXCEPTION_TRACE_AS_STRING_MSG);
541}
542
543try {
544    throw new ErrorException(EXCEPTION_PARAM_MSG, EXCEPTION_CODE_ERROR, E_USER_NOTICE, __FILE__, __LINE__);
545} catch(ErrorException $e) {
546    echo EXCEPTION_SEVERITY_ERROR_MSG . $e->getSeverity();
547    var_dump($e->getSeverity() === E_USER_NOTICE);
548    var_dump($e->getMessage() === EXCEPTION_PARAM_MSG);
549    var_dump($e->getCode() === 0);
550    var_dump($e->getPrevious() === NULL);
551    var_dump($e->getFile() === __FILE__);
552    var_dump($e->getTraceAsString() === EXCEPTION_TRACE_AS_STRING_MSG);
553}
554
555try {
556    throw new ErrorException(EXCEPTION_PARAM_MSG, EXCEPTION_CODE_ERROR, E_RECOVERABLE_ERROR, __FILE__, __LINE__);
557} catch(ErrorException $e) {
558    echo EXCEPTION_SEVERITY_ERROR_MSG . $e->getSeverity();
559    var_dump($e->getSeverity() === E_RECOVERABLE_ERROR);
560    var_dump($e->getMessage() === EXCEPTION_PARAM_MSG);
561    var_dump($e->getCode() === 0);
562    var_dump($e->getPrevious() === NULL);
563    var_dump($e->getFile() === __FILE__);
564    var_dump($e->getTraceAsString() === EXCEPTION_TRACE_AS_STRING_MSG);
565}
566
567try {
568    throw new ErrorException(EXCEPTION_PARAM_MSG, EXCEPTION_CODE_ERROR, E_DEPRECATED, __FILE__, __LINE__);
569} catch(ErrorException $e) {
570    echo EXCEPTION_SEVERITY_ERROR_MSG . $e->getSeverity();
571    var_dump($e->getSeverity() === E_DEPRECATED);
572    var_dump($e->getMessage() === EXCEPTION_PARAM_MSG);
573    var_dump($e->getCode() === 0);
574    var_dump($e->getPrevious() === NULL);
575    var_dump($e->getFile() === __FILE__);
576    var_dump($e->getTraceAsString() === EXCEPTION_TRACE_AS_STRING_MSG);
577}
578
579try {
580    throw new ErrorException(EXCEPTION_PARAM_MSG, EXCEPTION_CODE_ERROR, E_USER_DEPRECATED, __FILE__, __LINE__);
581} catch(ErrorException $e) {
582    echo EXCEPTION_SEVERITY_ERROR_MSG . $e->getSeverity();
583    var_dump($e->getSeverity() === E_USER_DEPRECATED);
584    var_dump($e->getMessage() === EXCEPTION_PARAM_MSG);
585    var_dump($e->getCode() === 0);
586    var_dump($e->getPrevious() === NULL);
587    var_dump($e->getFile() === __FILE__);
588    var_dump($e->getTraceAsString() === EXCEPTION_TRACE_AS_STRING_MSG);
589}
590
591try {
592    throw new ErrorException(EXCEPTION_PARAM_MSG, EXCEPTION_CODE_ERROR, E_USER_DEPRECATED, __FILE__, __LINE__, NULL);
593} catch(ErrorException $e) {
594    echo EXCEPTION_SEVERITY_ERROR_MSG . $e->getSeverity();
595    var_dump($e->getSeverity() === E_USER_DEPRECATED);
596    var_dump($e->getMessage() === EXCEPTION_PARAM_MSG);
597    var_dump($e->getCode() === 0);
598    var_dump($e->getPrevious() === NULL);
599    var_dump($e->getFile() === __FILE__);
600    var_dump($e->getTraceAsString() === EXCEPTION_TRACE_AS_STRING_MSG);
601}
602
603try {
604    throw new ErrorException(EXCEPTION_PARAM_MSG, EXCEPTION_CODE_ERROR, E_ERROR, __FILE__, __LINE__, NULL);
605} catch(Exception $exceptionErr) {
606    try {
607        throw new ErrorException(EXCEPTION_PARAM_MSG, EXCEPTION_CODE_ERROR, E_ERROR, __FILE__, __LINE__, $exceptionErr->getPrevious());
608    } catch(ErrorException $e) {
609        echo EXCEPTION_SEVERITY_ERROR_MSG . $e->getSeverity();
610        var_dump($e->getSeverity() === E_ERROR);
611        var_dump($e->getMessage() === EXCEPTION_PARAM_MSG);
612        var_dump($e->getCode() === 0);
613        var_dump($e->getPrevious() === NULL);
614        var_dump($e->getFile() === __FILE__);
615        var_dump($e->getTraceAsString() === EXCEPTION_TRACE_AS_STRING_MSG);
616    }
617}
618
619try {
620    throw new ErrorException(EXCEPTION_PARAM_MSG, EXCEPTION_CODE_ERROR, E_WARNING, __FILE__, __LINE__, NULL);
621} catch(Exception $exceptionErr) {
622    try {
623        throw new ErrorException(EXCEPTION_PARAM_MSG, EXCEPTION_CODE_ERROR, E_WARNING, __FILE__, __LINE__, $exceptionErr->getPrevious());
624    } catch(ErrorException $e) {
625        echo EXCEPTION_SEVERITY_ERROR_MSG . $e->getSeverity();
626        var_dump($e->getSeverity() === E_WARNING);
627        var_dump($e->getMessage() === EXCEPTION_PARAM_MSG);
628        var_dump($e->getCode() === 0);
629        var_dump($e->getPrevious() === NULL);
630        var_dump($e->getFile() === __FILE__);
631        var_dump($e->getTraceAsString() === EXCEPTION_TRACE_AS_STRING_MSG);
632    }
633}
634
635try {
636    throw new ErrorException(EXCEPTION_PARAM_MSG, EXCEPTION_CODE_ERROR, E_PARSE, __FILE__, __LINE__, NULL);
637} catch(Exception $exceptionErr) {
638    try {
639        throw new ErrorException(EXCEPTION_PARAM_MSG, EXCEPTION_CODE_ERROR, E_PARSE, __FILE__, __LINE__, $exceptionErr->getPrevious());
640    } catch(ErrorException $e) {
641        echo EXCEPTION_SEVERITY_ERROR_MSG . $e->getSeverity();
642        var_dump($e->getSeverity() === E_PARSE);
643        var_dump($e->getMessage() === EXCEPTION_PARAM_MSG);
644        var_dump($e->getCode() === 0);
645        var_dump($e->getPrevious() === NULL);
646        var_dump($e->getFile() === __FILE__);
647        var_dump($e->getTraceAsString() === EXCEPTION_TRACE_AS_STRING_MSG);
648    }
649}
650
651
652try {
653    throw new ErrorException(EXCEPTION_PARAM_MSG, EXCEPTION_CODE_ERROR, E_NOTICE, __FILE__, __LINE__, NULL);
654} catch(Exception $exceptionErr) {
655    try {
656        throw new ErrorException(EXCEPTION_PARAM_MSG, EXCEPTION_CODE_ERROR, E_NOTICE, __FILE__, __LINE__, $exceptionErr->getPrevious());
657    } catch(ErrorException $e) {
658        echo EXCEPTION_SEVERITY_ERROR_MSG . $e->getSeverity();
659        var_dump($e->getSeverity() === E_NOTICE);
660        var_dump($e->getMessage() === EXCEPTION_PARAM_MSG);
661        var_dump($e->getCode() === 0);
662        var_dump($e->getPrevious() === NULL);
663        var_dump($e->getFile() === __FILE__);
664        var_dump($e->getTraceAsString() === EXCEPTION_TRACE_AS_STRING_MSG);
665    }
666}
667
668try {
669    throw new ErrorException(EXCEPTION_PARAM_MSG, EXCEPTION_CODE_ERROR, E_CORE_ERROR, __FILE__, __LINE__, NULL);
670} catch(Exception $exceptionErr) {
671    try {
672        throw new ErrorException(EXCEPTION_PARAM_MSG, EXCEPTION_CODE_ERROR, E_CORE_ERROR, __FILE__, __LINE__, $exceptionErr->getPrevious());
673    } catch(ErrorException $e) {
674        echo EXCEPTION_SEVERITY_ERROR_MSG . $e->getSeverity();
675        var_dump($e->getSeverity() === E_CORE_ERROR);
676        var_dump($e->getMessage() === EXCEPTION_PARAM_MSG);
677        var_dump($e->getCode() === 0);
678        var_dump($e->getPrevious() === NULL);
679        var_dump($e->getFile() === __FILE__);
680        var_dump($e->getTraceAsString() === EXCEPTION_TRACE_AS_STRING_MSG);
681    }
682}
683
684try {
685    throw new ErrorException(EXCEPTION_PARAM_MSG, EXCEPTION_CODE_ERROR, E_CORE_WARNING, __FILE__, __LINE__, NULL);
686} catch(Exception $exceptionErr) {
687    try {
688        throw new ErrorException(EXCEPTION_PARAM_MSG, EXCEPTION_CODE_ERROR, E_CORE_WARNING, __FILE__, __LINE__, $exceptionErr->getPrevious());
689    } catch(ErrorException $e) {
690        echo EXCEPTION_SEVERITY_ERROR_MSG . $e->getSeverity();
691        var_dump($e->getSeverity() === E_CORE_WARNING);
692        var_dump($e->getMessage() === EXCEPTION_PARAM_MSG);
693        var_dump($e->getCode() === 0);
694        var_dump($e->getPrevious() === NULL);
695        var_dump($e->getFile() === __FILE__);
696        var_dump($e->getTraceAsString() === EXCEPTION_TRACE_AS_STRING_MSG);
697    }
698}
699
700try {
701    throw new ErrorException(EXCEPTION_PARAM_MSG, EXCEPTION_CODE_ERROR, E_COMPILE_ERROR, __FILE__, __LINE__, NULL);
702} catch(Exception $exceptionErr) {
703    try {
704        throw new ErrorException(EXCEPTION_PARAM_MSG, EXCEPTION_CODE_ERROR, E_COMPILE_ERROR, __FILE__, __LINE__, $exceptionErr->getPrevious());
705    } catch(ErrorException $e) {
706        echo EXCEPTION_SEVERITY_ERROR_MSG . $e->getSeverity();
707        var_dump($e->getSeverity() === E_COMPILE_ERROR);
708        var_dump($e->getMessage() === EXCEPTION_PARAM_MSG);
709        var_dump($e->getCode() === 0);
710        var_dump($e->getPrevious() === NULL);
711        var_dump($e->getFile() === __FILE__);
712        var_dump($e->getTraceAsString() === EXCEPTION_TRACE_AS_STRING_MSG);
713    }
714}
715
716try {
717    throw new ErrorException(EXCEPTION_PARAM_MSG, EXCEPTION_CODE_ERROR, E_COMPILE_WARNING, __FILE__, __LINE__, NULL);
718} catch(Exception $exceptionErr) {
719    try {
720        throw new ErrorException(EXCEPTION_PARAM_MSG, EXCEPTION_CODE_ERROR, E_COMPILE_WARNING, __FILE__, __LINE__, $exceptionErr->getPrevious());
721    } catch(ErrorException $e) {
722        echo EXCEPTION_SEVERITY_ERROR_MSG . $e->getSeverity();
723        var_dump($e->getSeverity() === E_COMPILE_WARNING);
724        var_dump($e->getMessage() === EXCEPTION_PARAM_MSG);
725        var_dump($e->getCode() === 0);
726        var_dump($e->getPrevious() === NULL);
727        var_dump($e->getFile() === __FILE__);
728        var_dump($e->getTraceAsString() === EXCEPTION_TRACE_AS_STRING_MSG);
729    }
730}
731
732try {
733    throw new ErrorException(EXCEPTION_PARAM_MSG, EXCEPTION_CODE_ERROR, E_USER_ERROR, __FILE__, __LINE__, NULL);
734} catch(Exception $exceptionErr) {
735    try {
736        throw new ErrorException(EXCEPTION_PARAM_MSG, EXCEPTION_CODE_ERROR, E_USER_ERROR, __FILE__, __LINE__, $exceptionErr->getPrevious());
737    } catch(ErrorException $e) {
738        echo EXCEPTION_SEVERITY_ERROR_MSG . $e->getSeverity();
739        var_dump($e->getSeverity() === E_USER_ERROR);
740        var_dump($e->getMessage() === EXCEPTION_PARAM_MSG);
741        var_dump($e->getCode() === 0);
742        var_dump($e->getPrevious() === NULL);
743        var_dump($e->getFile() === __FILE__);
744        var_dump($e->getTraceAsString() === EXCEPTION_TRACE_AS_STRING_MSG);
745    }
746}
747
748try {
749    throw new ErrorException(EXCEPTION_PARAM_MSG, EXCEPTION_CODE_ERROR, E_USER_WARNING, __FILE__, __LINE__, NULL);
750} catch(Exception $exceptionErr) {
751    try {
752        throw new ErrorException(EXCEPTION_PARAM_MSG, EXCEPTION_CODE_ERROR, E_USER_WARNING, __FILE__, __LINE__, $exceptionErr->getPrevious());
753    } catch(ErrorException $e) {
754        echo EXCEPTION_SEVERITY_ERROR_MSG . $e->getSeverity();
755        var_dump($e->getSeverity() === E_USER_WARNING);
756        var_dump($e->getMessage() === EXCEPTION_PARAM_MSG);
757        var_dump($e->getCode() === 0);
758        var_dump($e->getPrevious() === NULL);
759        var_dump($e->getFile() === __FILE__);
760        var_dump($e->getTraceAsString() === EXCEPTION_TRACE_AS_STRING_MSG);
761    }
762}
763
764try {
765    throw new ErrorException(EXCEPTION_PARAM_MSG, EXCEPTION_CODE_ERROR, E_USER_NOTICE, __FILE__, __LINE__, NULL);
766} catch(Exception $exceptionErr) {
767    try {
768        throw new ErrorException(EXCEPTION_PARAM_MSG, EXCEPTION_CODE_ERROR, E_USER_NOTICE, __FILE__, __LINE__, $exceptionErr->getPrevious());
769    } catch(ErrorException $e) {
770        echo EXCEPTION_SEVERITY_ERROR_MSG . $e->getSeverity();
771        var_dump($e->getSeverity() === E_USER_NOTICE);
772        var_dump($e->getMessage() === EXCEPTION_PARAM_MSG);
773        var_dump($e->getCode() === 0);
774        var_dump($e->getPrevious() === NULL);
775        var_dump($e->getFile() === __FILE__);
776        var_dump($e->getTraceAsString() === EXCEPTION_TRACE_AS_STRING_MSG);
777    }
778}
779
780try {
781    throw new ErrorException(EXCEPTION_PARAM_MSG, EXCEPTION_CODE_ERROR, E_RECOVERABLE_ERROR, __FILE__, __LINE__, NULL);
782} catch(Exception $exceptionErr) {
783    try {
784        throw new ErrorException(EXCEPTION_PARAM_MSG, EXCEPTION_CODE_ERROR, E_RECOVERABLE_ERROR, __FILE__, __LINE__, $exceptionErr->getPrevious());
785    } catch(ErrorException $e) {
786        echo EXCEPTION_SEVERITY_ERROR_MSG . $e->getSeverity();
787        var_dump($e->getSeverity() === E_RECOVERABLE_ERROR);
788        var_dump($e->getMessage() === EXCEPTION_PARAM_MSG);
789        var_dump($e->getCode() === 0);
790        var_dump($e->getPrevious() === NULL);
791        var_dump($e->getFile() === __FILE__);
792        var_dump($e->getTraceAsString() === EXCEPTION_TRACE_AS_STRING_MSG);
793    }
794}
795
796try {
797    throw new ErrorException(EXCEPTION_PARAM_MSG, EXCEPTION_CODE_ERROR, E_USER_DEPRECATED, __FILE__, __LINE__, NULL);
798} catch(Exception $exceptionErr) {
799    try {
800        throw new ErrorException(EXCEPTION_PARAM_MSG, EXCEPTION_CODE_ERROR, E_USER_DEPRECATED, __FILE__, __LINE__, $exceptionErr->getPrevious());
801    } catch(ErrorException $e) {
802        echo EXCEPTION_SEVERITY_ERROR_MSG . $e->getSeverity();
803        var_dump($e->getSeverity() === E_USER_DEPRECATED);
804        var_dump($e->getMessage() === EXCEPTION_PARAM_MSG);
805        var_dump($e->getCode() === 0);
806        var_dump($e->getPrevious() === NULL);
807        var_dump($e->getFile() === __FILE__);
808        var_dump($e->getTraceAsString() === EXCEPTION_TRACE_AS_STRING_MSG);
809    }
810}
811
812?>
813--EXPECT--
814This exception severity is: 1bool(true)
815bool(true)
816bool(true)
817bool(true)
818bool(true)
819bool(true)
820This exception severity is: 1bool(true)
821bool(true)
822bool(true)
823bool(true)
824bool(true)
825bool(true)
826This exception severity is: 1bool(true)
827bool(true)
828bool(true)
829bool(true)
830bool(true)
831bool(true)
832This exception severity is: 1bool(true)
833bool(true)
834bool(true)
835bool(true)
836bool(true)
837bool(true)
838This exception severity is: 2bool(true)
839bool(true)
840bool(true)
841bool(true)
842bool(true)
843bool(true)
844This exception severity is: 4bool(true)
845bool(true)
846bool(true)
847bool(true)
848bool(true)
849bool(true)
850This exception severity is: 8bool(true)
851bool(true)
852bool(true)
853bool(true)
854bool(true)
855bool(true)
856This exception severity is: 16bool(true)
857bool(true)
858bool(true)
859bool(true)
860bool(true)
861bool(true)
862This exception severity is: 32bool(true)
863bool(true)
864bool(true)
865bool(true)
866bool(true)
867bool(true)
868This exception severity is: 32bool(true)
869bool(true)
870bool(true)
871bool(true)
872bool(true)
873bool(true)
874This exception severity is: 64bool(true)
875bool(true)
876bool(true)
877bool(true)
878bool(true)
879bool(true)
880This exception severity is: 128bool(true)
881bool(true)
882bool(true)
883bool(true)
884bool(true)
885bool(true)
886This exception severity is: 256bool(true)
887bool(true)
888bool(true)
889bool(true)
890bool(true)
891bool(true)
892This exception severity is: 512bool(true)
893bool(true)
894bool(true)
895bool(true)
896bool(true)
897bool(true)
898This exception severity is: 1024bool(true)
899bool(true)
900bool(true)
901bool(true)
902bool(true)
903bool(true)
904This exception severity is: 4096bool(true)
905bool(true)
906bool(true)
907bool(true)
908bool(true)
909bool(true)
910This exception severity is: 8192bool(true)
911bool(true)
912bool(true)
913bool(true)
914bool(true)
915bool(true)
916This exception severity is: 16384bool(true)
917bool(true)
918bool(true)
919bool(true)
920bool(true)
921bool(true)
922This exception severity is: 1bool(true)
923bool(true)
924bool(true)
925bool(true)
926bool(true)
927bool(true)
928This exception severity is: 2bool(true)
929bool(true)
930bool(true)
931bool(true)
932bool(true)
933bool(true)
934This exception severity is: 4bool(true)
935bool(true)
936bool(true)
937bool(true)
938bool(true)
939bool(true)
940This exception severity is: 8bool(true)
941bool(true)
942bool(true)
943bool(true)
944bool(true)
945bool(true)
946This exception severity is: 16bool(true)
947bool(true)
948bool(true)
949bool(true)
950bool(true)
951bool(true)
952This exception severity is: 32bool(true)
953bool(true)
954bool(true)
955bool(true)
956bool(true)
957bool(true)
958This exception severity is: 32bool(true)
959bool(true)
960bool(true)
961bool(true)
962bool(true)
963bool(true)
964This exception severity is: 64bool(true)
965bool(true)
966bool(true)
967bool(true)
968bool(true)
969bool(true)
970This exception severity is: 128bool(true)
971bool(true)
972bool(true)
973bool(true)
974bool(true)
975bool(true)
976This exception severity is: 256bool(true)
977bool(true)
978bool(true)
979bool(true)
980bool(true)
981bool(true)
982This exception severity is: 512bool(true)
983bool(true)
984bool(true)
985bool(true)
986bool(true)
987bool(true)
988This exception severity is: 1024bool(true)
989bool(true)
990bool(true)
991bool(true)
992bool(true)
993bool(true)
994This exception severity is: 4096bool(true)
995bool(true)
996bool(true)
997bool(true)
998bool(true)
999bool(true)
1000This exception severity is: 8192bool(true)
1001bool(true)
1002bool(true)
1003bool(true)
1004bool(true)
1005bool(true)
1006This exception severity is: 16384bool(true)
1007bool(true)
1008bool(true)
1009bool(true)
1010bool(true)
1011bool(true)
1012This exception severity is: 1bool(true)
1013bool(true)
1014bool(true)
1015bool(true)
1016bool(true)
1017bool(true)
1018This exception severity is: 2bool(true)
1019bool(true)
1020bool(true)
1021bool(true)
1022bool(true)
1023bool(true)
1024This exception severity is: 4bool(true)
1025bool(true)
1026bool(true)
1027bool(true)
1028bool(true)
1029bool(true)
1030This exception severity is: 8bool(true)
1031bool(true)
1032bool(true)
1033bool(true)
1034bool(true)
1035bool(true)
1036This exception severity is: 16bool(true)
1037bool(true)
1038bool(true)
1039bool(true)
1040bool(true)
1041bool(true)
1042This exception severity is: 32bool(true)
1043bool(true)
1044bool(true)
1045bool(true)
1046bool(true)
1047bool(true)
1048This exception severity is: 32bool(true)
1049bool(true)
1050bool(true)
1051bool(true)
1052bool(true)
1053bool(true)
1054This exception severity is: 64bool(true)
1055bool(true)
1056bool(true)
1057bool(true)
1058bool(true)
1059bool(true)
1060This exception severity is: 128bool(true)
1061bool(true)
1062bool(true)
1063bool(true)
1064bool(true)
1065bool(true)
1066This exception severity is: 256bool(true)
1067bool(true)
1068bool(true)
1069bool(true)
1070bool(true)
1071bool(true)
1072This exception severity is: 512bool(true)
1073bool(true)
1074bool(true)
1075bool(true)
1076bool(true)
1077bool(true)
1078This exception severity is: 1024bool(true)
1079bool(true)
1080bool(true)
1081bool(true)
1082bool(true)
1083bool(true)
1084This exception severity is: 4096bool(true)
1085bool(true)
1086bool(true)
1087bool(true)
1088bool(true)
1089bool(true)
1090This exception severity is: 8192bool(true)
1091bool(true)
1092bool(true)
1093bool(true)
1094bool(true)
1095bool(true)
1096This exception severity is: 16384bool(true)
1097bool(true)
1098bool(true)
1099bool(true)
1100bool(true)
1101bool(true)
1102This exception severity is: 16384bool(true)
1103bool(true)
1104bool(true)
1105bool(true)
1106bool(true)
1107bool(true)
1108This exception severity is: 1bool(true)
1109bool(true)
1110bool(true)
1111bool(true)
1112bool(true)
1113bool(true)
1114This exception severity is: 2bool(true)
1115bool(true)
1116bool(true)
1117bool(true)
1118bool(true)
1119bool(true)
1120This exception severity is: 4bool(true)
1121bool(true)
1122bool(true)
1123bool(true)
1124bool(true)
1125bool(true)
1126This exception severity is: 8bool(true)
1127bool(true)
1128bool(true)
1129bool(true)
1130bool(true)
1131bool(true)
1132This exception severity is: 16bool(true)
1133bool(true)
1134bool(true)
1135bool(true)
1136bool(true)
1137bool(true)
1138This exception severity is: 32bool(true)
1139bool(true)
1140bool(true)
1141bool(true)
1142bool(true)
1143bool(true)
1144This exception severity is: 64bool(true)
1145bool(true)
1146bool(true)
1147bool(true)
1148bool(true)
1149bool(true)
1150This exception severity is: 128bool(true)
1151bool(true)
1152bool(true)
1153bool(true)
1154bool(true)
1155bool(true)
1156This exception severity is: 256bool(true)
1157bool(true)
1158bool(true)
1159bool(true)
1160bool(true)
1161bool(true)
1162This exception severity is: 512bool(true)
1163bool(true)
1164bool(true)
1165bool(true)
1166bool(true)
1167bool(true)
1168This exception severity is: 1024bool(true)
1169bool(true)
1170bool(true)
1171bool(true)
1172bool(true)
1173bool(true)
1174This exception severity is: 4096bool(true)
1175bool(true)
1176bool(true)
1177bool(true)
1178bool(true)
1179bool(true)
1180This exception severity is: 16384bool(true)
1181bool(true)
1182bool(true)
1183bool(true)
1184bool(true)
1185bool(true)
1186