DataObjects/I18n.php
[Pman.Core] / NotifySend.php
index 67985f9..0228298 100644 (file)
@@ -26,8 +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_Exception_Success extends Exception {}
+class Pman_Core_NotifySend_Exception_Fail extends Exception {}
 
 
 class Pman_Core_NotifySend extends Pman
@@ -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);