Files
fdn2/app/private/lib/constrained/ConstraintException.php
2022-08-29 23:20:16 +02:00

32 lines
651 B
PHP

<?php
/*
Author: Riccardo Di Dato
Creation Date: 07/gen/2016
*/
class ConstraintException extends CoreException{
private $operation;
private $key;
private $value;
public function __construct($operation,$key,$value = null){
$this->operation = $operation;
$this->key = $key;
$this->value = $value;
parent::__construct("Impossible to execute operation '$operation' on attribute '$key'".(!is_null($value)?" with value '$value'":""));
}
public function getRelatedOperation(){
return $this->operation;
}
public function getRelatedKey(){
return $this->key;
}
public function getRelatedValue(){
return $this->value;
}
}
?>