From 9cdb366d7d05a7fbb420d8f5ad57512b51348c30 Mon Sep 17 00:00:00 2001 From: Reede Stockton Date: Thu, 19 Oct 2023 10:31:08 -0700 Subject: [PATCH] Change exception class to UTIL_Permissions.InsufficientPermissionException --- force-app/main/default/classes/RD2_PauseForm_CTRL.cls | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/force-app/main/default/classes/RD2_PauseForm_CTRL.cls b/force-app/main/default/classes/RD2_PauseForm_CTRL.cls index 55783a8f343..acf3185c89c 100644 --- a/force-app/main/default/classes/RD2_PauseForm_CTRL.cls +++ b/force-app/main/default/classes/RD2_PauseForm_CTRL.cls @@ -196,7 +196,7 @@ public with sharing class RD2_PauseForm_CTRL { } if (!hasFieldReadAccess(queryFields)) { - throwAuraHandledException(System.Label.commonAccessErrorMessage); + throw new UTIL_Permissions.InsufficientPermissionException(System.Label.commonAccessErrorMessage); } RD2_QueryService queryService = new RD2_QueryService(); @@ -284,7 +284,7 @@ public with sharing class RD2_PauseForm_CTRL { Boolean hasScheduleChanged = false; try { if (!hasAccess()) { - throwAuraHandledException(System.Label.commonAccessErrorMessage); + throw new UTIL_Permissions.InsufficientPermissionException(System.Label.commonAccessErrorMessage); } PauseData pause = (PauseData) JSON.deserialize(jsonPauseData, PauseData.class);