]> git.mxchange.org Git - core.git/blobdiff - framework/main/classes/mailer/debug/class_DebugMailer.php
Continued:
[core.git] / framework / main / classes / mailer / debug / class_DebugMailer.php
index d9fa84a0f86dd6c69a5caa601f18212f5ace4053..884b385877b1fe035a661b291bd9d79a6534c5b8 100644 (file)
@@ -88,7 +88,7 @@ class DebugMailer extends BaseMailer implements DeliverableMail {
                                // The recipient should be a user instance, right?
                                if (!$recipientInstance instanceof ManageableMember) {
                                        // Invalid entry found!
-                                       throw new UnexpectedValueException(sprintf('recipientInstance[]=%s does not implement ManageableMember', gettype($recipientInstance)));
+                                       throw new UnexpectedValueException(sprintf('recipientInstance[]=%s does not implement ManageableMember', gettype($recipientInstance)), FrameworkInterface::EXCEPTION_UNEXPECTED_VALUE);
                                }
 
                                // User class found, so entry is valid, first load the template
@@ -108,7 +108,7 @@ class DebugMailer extends BaseMailer implements DeliverableMail {
                                        // Is the value instance there?
                                        if (!isset($recipientList['values'][$variable])) {
                                                // Throw exception
-                                               throw new NullPointerException($this, self::EXCEPTION_IS_NULL_POINTER);
+                                               throw new NullPointerException($this, FrameworkInterface::EXCEPTION_IS_NULL_POINTER);
                                        }
 
                                        // Get the field from the value instance