« PHP 8.3 Manual トップ
著作権 »
per page, with , order by , clip by
Results of 1 - 1 of about 1 for FileNotFoundException (0.001 sec.)
try...catch | PHP 8.3 9414
try...catch try (PHP 5, PHP 7, PHP 8) try ブロックは、処理が必要な Throwable エラーを throw する可能性があるコードを囲むもので、 対応する catch ブロックあるいは finally ブロックが 必ず ひとつ以上必要です。 try ブロック内で Throwable エラーが ... ble エラーをそれぞれ異なる方法で処理できます。 例3 複数の catch ブロック <?php try { do_something_io_related (); } catch ( FileNotFoundException $e ) { // FileNotFoundException だけをキャッチして、その場合の処理を行う } catch ( MissingPermissionException $e ) { // Mi ...
https://man.mtool.work/php/8.3/control-structures.try-catch.html
PREV 1 NEXT