2023-07-01から1ヶ月間の記事一覧
例外処理:アクセス先が、存在しないURLの場合の対応 「404 Not Found」を表示させる 実装理由:エラーごとに処理を変えたいから 「Exceptionクラス」は、PHPのエラー(例外)処理の「親」 try { // 例外処理:404 Not Found if (!$params) { throw new HttpNo…
例外処理:アクセス先が、存在しないURLの場合の対応 「404 Not Found」を表示させる 実装理由:エラーごとに処理を変えたいから 「Exceptionクラス」は、PHPのエラー(例外)処理の「親」 try { // 例外処理:404 Not Found if (!$params) { throw new HttpNo…