You are here

public function InvalidDateException::__construct in Persian Date for Drupal 8 8.4

Constructor.

Parameters

string $field:

mixed $value:

int $code:

\Exception|null $previous:

File

src/Library/Carbon/Exceptions/InvalidDateException.php, line 41

Class

InvalidDateException

Namespace

Drupal\persian_date\Library\Carbon\Exceptions

Code

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);
}