removed all files that are in the .gitignore
This commit is contained in:
37
app/main/exception/validationexception.php
Normal file
37
app/main/exception/validationexception.php
Normal file
@@ -0,0 +1,37 @@
|
||||
<?php
|
||||
/**
|
||||
* Created by PhpStorm.
|
||||
* User: exodus4d
|
||||
* Date: 21.02.15
|
||||
* Time: 00:12
|
||||
*/
|
||||
|
||||
namespace Exception;
|
||||
|
||||
|
||||
class ValidationException extends BaseException {
|
||||
|
||||
private $field;
|
||||
|
||||
/**
|
||||
* @return mixed
|
||||
*/
|
||||
public function getField(){
|
||||
return $this->field;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param mixed $field
|
||||
*/
|
||||
public function setField($field){
|
||||
$this->field = $field;
|
||||
}
|
||||
|
||||
|
||||
public function __construct($message, $field = 0){
|
||||
|
||||
parent::__construct($message, self::VALIDATION_FAILED);
|
||||
|
||||
$this->setField($field);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user