dmBridge PHP API
DMInvalidEmailException.php
00001 <?php
00002 #
00003 # dmBridge: a data access framework for CONTENTdm(R)
00004 # Copyright © 2009, 2010 Board of Regents of the Nevada System of Higher
00005 # Education, on behalf of the University of Nevada, Las Vegas
00006 #
00007 
00012 class DMInvalidEmailException extends DMIllegalArgumentException {
00013 
00019    public function __construct($email, $code = 3) {
00020       $msg = sprintf(DMLocalizedString::getString('INVALID_EMAIL_ADDRESS'), $email);
00021       parent::__construct($msg, $code);
00022       $this->setHTTPResponseCode(400);
00023    }
00024 
00025 }
 All Data Structures Functions Variables