Files
pathfinder/app/main/exception/registrationexception.php
2015-08-30 23:25:02 +02:00

40 lines
659 B
PHP

<?php
/**
* Created by PhpStorm.
* User: Exodus
* Date: 15.08.2015
* Time: 21:21
*/
namespace Exception;
class RegistrationException extends BaseException{
/**
* form field name that causes this exception
* @var string
*/
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 = ''){
parent::__construct($message, self::REGISTRATION_FAILED);
$this->setField($field);
}
}