<?php
/**
* @package DATA
*/
/**
* An exception thrown when a sql time field is filled with an
* invalid value.
*/
class DATA_InvalidTime extends DATA_SQLTypeConstraintFailed {
/**
* The invalid time.
* @var string
*/
private $time;
/**
* Constructor.
*
* @param string $time The invalid time.
*/
public function __construct($time) {
parent::__construct("'$time' is an invalid time.");
$this->time = $time;
}
/**
* Returns the invalid time.
*
* @return string The invalid time.
*/
public function getTime() {
return $this->time;
}
}
?>
|