public function __construct($policyName, $message, $code, Exception $previous)
 {
     $this->policyName = $policyName;
     parent::__construct($message, $code, $previous);
 }
Esempio n. 2
0
 public function __construct(string $expectedType, $givenValue, \Exception $previous = null)
 {
     $this->expectedType = $expectedType;
     $this->givenValue = $givenValue;
     parent::__construct(sprintf("The given value doesn't match with expected type %s. %s given", $this->expectedType, $this->getGivenValueType()), null, $previous);
 }