public function InvalidIntervalException::__construct in Interval Field 8
Constructs a new \Drupal\interval\InvalidIntervalException.
Parameters
string $message: Error message.
int $code: Error code.
\Exception $previous: The previous exception
\DateTime $date: The date that caused the exception.
\Drupal\interval\IntervalItemInterface $item: The item that caused the exception.
File
- src/
InvalidIntervalException.php, line 38
Class
- InvalidIntervalException
- Defines an exception for handling invalid intervals.
Namespace
Drupal\intervalCode
public function __construct($message = "", $code = 0, \Exception $previous = NULL, \DateTime $date = NULL, IntervalItemInterface $item = NULL) {
$this->item = $item;
$this->date = $date;
parent::__construct($message, $code, $previous);
}