From 19b87b4415209a7d55e772057a8d983feda93bab Mon Sep 17 00:00:00 2001 From: edward Date: Thu, 10 Nov 2016 17:08:53 +0800 Subject: [PATCH] NotifySend.php --- NotifySend.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/NotifySend.php b/NotifySend.php index 033d4537..6fc7f24f 100644 --- a/NotifySend.php +++ b/NotifySend.php @@ -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); } -- 2.39.2