From 09ba30f31f78f77ec63c1635c50a5d7c0aa404e7 Mon Sep 17 00:00:00 2001 From: edward Date: Thu, 10 Nov 2016 17:09:51 +0800 Subject: [PATCH] NotifySend.php --- NotifySend.php | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/NotifySend.php b/NotifySend.php index 1f70926a..0228298f 100644 --- a/NotifySend.php +++ b/NotifySend.php @@ -652,8 +652,11 @@ class Pman_Core_NotifySend extends Pman function errorHandler($msg, $success = false) { if($this->error_handler == 'exception'){ - if() - throw new Exception($msg); + if($success){ + throw new Pman_Core_NotifySend_Exception_Success($msg); + } + + throw new Pman_Core_NotifySend_Exception_Fail($msg); } die($msg); -- 2.39.2