0
Puis-je fusionner deux prises en PHP?PHP: fusionner les prises
try {
// some code
}
catch (App_Exception $e) {
// do sth.
}
catch (Exception $e) {
// do the same exception code again
}
Puis-je fusionner deux prises en PHP?PHP: fusionner les prises
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
}
Je ne comprends pas comment cela modifie le comportement du tout bien? –