From d26eec7b5f28950659f7acaa7f325f86c5a41d30 Mon Sep 17 00:00:00 2001 From: "sosuke.iwabuchi" Date: Wed, 31 May 2023 16:02:40 +0900 Subject: [PATCH] =?UTF-8?q?=E6=8E=92=E4=BB=96=E3=82=A8=E3=83=A9=E3=83=BC?= =?UTF-8?q?=E6=99=82=E3=81=AE=E4=BE=8B=E5=A4=96=E3=83=8F=E3=83=B3=E3=83=89?= =?UTF-8?q?=E3=83=AA=E3=83=B3=E3=82=B0=E5=87=A6=E7=90=86=E3=82=92=E8=BF=BD?= =?UTF-8?q?=E5=8A=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/Http/Controllers/Web/WebController.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/app/Http/Controllers/Web/WebController.php b/app/Http/Controllers/Web/WebController.php index 65b4f80..e3eee6d 100644 --- a/app/Http/Controllers/Web/WebController.php +++ b/app/Http/Controllers/Web/WebController.php @@ -5,6 +5,7 @@ namespace App\Http\Controllers\Web; use App\Codes\HTTPResultCode as ResultCode; use App\Codes\UserRole; use App\Exceptions\AppCommonException; +use App\Exceptions\ExclusiveException; use App\Exceptions\GeneralErrorMessageException; use Exception; use Illuminate\Foundation\Auth\Access\AuthorizesRequests; @@ -159,6 +160,9 @@ abstract class WebController extends BaseController } catch (AppCommonException $e) { logs()->error(sprintf("Appエラー:%s", $e->getMessage())); return $this->failedResponse(); + } catch (ExclusiveException $e) { + logs()->error(sprintf("排他エラー:%s", $e->getMessage())); + return $this->exclusiveErrorResponse(); } catch (LogicException $e) { logs()->error([ sprintf("実装エラー:%s", $e->getMessage()),