diff --git a/workflow/engine/src/ProcessMaker/BusinessModel/Light/NotificationDevice.php b/workflow/engine/src/ProcessMaker/BusinessModel/Light/NotificationDevice.php index 88c32255a..5f370b989 100644 --- a/workflow/engine/src/ProcessMaker/BusinessModel/Light/NotificationDevice.php +++ b/workflow/engine/src/ProcessMaker/BusinessModel/Light/NotificationDevice.php @@ -2,6 +2,7 @@ namespace ProcessMaker\BusinessModel\Light; +use \ProcessMaker\Services\Api; use G; class NotificationDevice @@ -135,7 +136,7 @@ class NotificationDevice } } catch (\Exception $e) { - throw new \Exception(\Api::STAT_APP_EXCEPTION, $e->getMessage()); + throw new \Exception($e->getMessage(), Api::STAT_APP_EXCEPTION); } return $response; } @@ -229,8 +230,9 @@ class NotificationDevice } } } catch (\Exception $e) { - throw new \Exception(\Api::STAT_APP_EXCEPTION, $e->getMessage()); + throw new \Exception($e->getMessage(), Api::STAT_APP_EXCEPTION); } + return $response; }