From: edward Date: Thu, 10 Nov 2016 09:09:51 +0000 (+0800) Subject: NotifySend.php X-Git-Url: http://git.roojs.org/?p=Pman.Core;a=commitdiff_plain;h=09ba30f31f78f77ec63c1635c50a5d7c0aa404e7 NotifySend.php --- 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);