use Org\Mxchange\CoreFramework\Registry\GenericRegistry;
use Org\Mxchange\CoreFramework\Template\CompileableTemplate;
+// Import SPL stuff
+use \UnexpectedValueException;
+
/**
* A mailer class for debugging purposes only. This class will print the
* prepared mail out and will not send it to the recipient.
* Deliver email to the recipient(s)
*
* @return void
- * @throws InvalidInterfaceException If the recipient instance does not implement ManageableMember
+ * @throws UnexpectedValueException If the recipient instance does not implement ManageableMember
*/
public function deliverEmail () {
// Get template instance
// The recipient should be a user instance, right?
if (!$recipientInstance instanceof ManageableMember) {
// Invalid entry found!
- throw new InvalidInterfaceException(array($this, 'ManageableMember'), self::EXCEPTION_REQUIRED_INTERFACE_MISSING);
+ throw new UnexpectedValueException(sprintf('recipientInstance[]=%s does not implement ManageableMember', gettype($recipientInstance)));
}
// User class found, so entry is valid, first load the template