1.2.1219. Try With Multiple Catch¶
Try may be used with multiple catch clauses.
<?php
try {
OneCatch();
} catch (FirstException $e) {
}
try {
TwoCatches();
} catch (FirstException $e) {
} catch (SecondException $e) {
}
?>
See also Exceptions.
1.2.1219.1. Specs¶
Short name |
Php/TryMultipleCatch |
Rulesets |
|
Exakat since |
0.11.3 |
PHP Version |
All |
Severity |
|
Time To Fix |
|
Precision |
Very high |
Features |
exception |
Available in |