Location: PHPKode > projects > Neobill > NeoBill0.5.6/solidworks/exceptions/EmailFieldException.class.php
<?php
/**
 * EmailFieldException.class.php
 *
 * This file contains the definition of the EmailFieldException class.
 *
 * @package SolidWorks
 * @author John Diamond <hide@address.com>
 * @copyright John Diamond <hide@address.com>
 * @license http://www.opensource.org/licenses/gpl-license.php GNU Public License
 */

/**
 * EmailFieldException
 *
 * @package SolidWorks
 * @author John Diamond <hide@address.com>
 */
class EmailFieldException extends FieldException {
	const MESSAGE = '[PLEASE_ENTER_A_VALID_EMAIL_ADDRESS_FOR] %s.';

	/**
	 * @var string The internal error message for this exception
	 */
	protected $message = "Invalid E-Mail";

	/**
	 * EmailFieldException Constructor
	 */
	public function __construct() {
		parent::__construct();
	}

	/**
	 * Error Message String
	 *
	 * @return string An error message that can be displayed to the user
	 */
	public function __toString() {
		return sprintf( self::MESSAGE, $this->field );
	}
}
?>
Return current item: Neobill