class InvalidDateException in Persian Date for Drupal 8 8.4
Hierarchy
- class \Drupal\persian_date\Library\Carbon\Exceptions\InvalidDateException extends \InvalidArgumentException
Expanded class hierarchy of InvalidDateException
1 file declares its use of InvalidDateException
- Carbon.php in src/
Library/ Carbon/ Carbon.php
File
- src/
Library/ Carbon/ Exceptions/ InvalidDateException.php, line 17
Namespace
Drupal\persian_date\Library\Carbon\ExceptionsView source
class InvalidDateException extends InvalidArgumentException {
/**
* The invalid field.
*
* @var string
*/
private $field;
/**
* The invalid value.
*
* @var mixed
*/
private $value;
/**
* Constructor.
*
* @param string $field
* @param mixed $value
* @param int $code
* @param \Exception|null $previous
*/
public function __construct($field, $value, $code = 0, Exception $previous = null) {
$this->field = $field;
$this->value = $value;
parent::__construct($field . ' : ' . $value . ' is not a valid value.', $code, $previous);
}
/**
* Get the invalid field.
*
* @return string
*/
public function getField() {
return $this->field;
}
/**
* Get the invalid value.
*
* @return mixed
*/
public function getValue() {
return $this->value;
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
InvalidDateException:: |
private | property | The invalid field. | |
InvalidDateException:: |
private | property | The invalid value. | |
InvalidDateException:: |
public | function | Get the invalid field. | |
InvalidDateException:: |
public | function | Get the invalid value. | |
InvalidDateException:: |
public | function | Constructor. |