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

index 033d453..6fc7f24 100644 (file)
@@ -26,6 +26,8 @@ require_once 'Pman.php';
  * Mail[helo] << helo host name
  * Mail[socket_options] << any socket option.
  */
+Pman_Core_NotifySend_Exception_Success extends Exception {}
+Pman_Core_NotifySend_Exception_Fail extends Exception {}
 
 
 class Pman_Core_NotifySend extends Pman
@@ -647,9 +649,10 @@ class Pman_Core_NotifySend extends Pman
         $this->debug_str .= $message;
     }
     
-    function errorHandler($msg)
+    function errorHandler($msg, $success = false)
     {
         if($this->error_handler == 'exception'){
+            if()
             throw new Exception($msg);
         }