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