1.2.1228. 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.1228.1. Connex PHP features¶
1.2.1228.1.1. Specs¶
Short name |
Php/TryMultipleCatch |
Rulesets |
|
Exakat since |
0.11.3 |
PHP Version |
All |
Severity |
|
Time To Fix |
|
Precision |
Very high |
Available in |