0
Могу ли я объединить два улова в PHP?PHP: Объединение уловов
try {
// some code
}
catch (App_Exception $e) {
// do sth.
}
catch (Exception $e) {
// do the same exception code again
}
Могу ли я объединить два улова в PHP?PHP: Объединение уловов
try {
// some code
}
catch (App_Exception $e) {
// do sth.
}
catch (Exception $e) {
// do the same exception code again
}
try {
try {
// some code
}
catch (App_Exception $e) {
// do sth.
throw $e;
}
}
catch (Exception $e) {
// do the same exception code again
}
Я не понимаю, как это изменяет поведение вообще хоть? –