NotifySend.php
authoredward <edward@roojs.com>
Thu, 10 Nov 2016 09:09:51 +0000 (17:09 +0800)
committeredward <edward@roojs.com>
Thu, 10 Nov 2016 09:09:51 +0000 (17:09 +0800)
NotifySend.php

index 1f70926..0228298 100644 (file)
@@ -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);