79 lines
1.8 KiB
PHP
79 lines
1.8 KiB
PHP
<?php
|
||
|
||
/**
|
||
* Questlab
|
||
*
|
||
* @author Oliver Hanraths <oliver.hanraths@uni-duesseldorf.de>
|
||
* @copyright 2014 – 2016 Heinrich-Heine-Universität Düsseldorf
|
||
* @license http://www.gnu.org/licenses/gpl.html
|
||
* @link https://github.com/coderkun/questlab
|
||
*/
|
||
|
||
namespace hhu\z\exceptions;
|
||
|
||
|
||
/**
|
||
* Exception: StationtypeAgent not found.
|
||
*
|
||
* @author Oliver Hanraths <oliver.hanraths@uni-duesseldorf.de>
|
||
*/
|
||
class StationtypeAgentNotFoundException extends \nre\core\Exception
|
||
{
|
||
/**
|
||
* Error code
|
||
*
|
||
* @var int
|
||
*/
|
||
const CODE = 401;
|
||
/**
|
||
* Error message
|
||
*
|
||
* @var string
|
||
*/
|
||
const MESSAGE = 'StationtypeAgent not found';
|
||
|
||
/**
|
||
* Name of the class that was not found
|
||
*
|
||
* @var string
|
||
*/
|
||
private $stationtypeName;
|
||
|
||
|
||
|
||
|
||
/**
|
||
* Construct a new exception.
|
||
*
|
||
* @param string $stationtypeName Name of the StationtypeAgent that was not found
|
||
* @param string $message Error message
|
||
* @param int $code Error code
|
||
*/
|
||
function __construct($stationtypeName, $message=self::MESSAGE, $code=self::CODE)
|
||
{
|
||
parent::__construct(
|
||
$message,
|
||
$code,
|
||
$stationtypeName
|
||
);
|
||
|
||
// Store values
|
||
$this->stationtypeName = $stationtypeName;
|
||
}
|
||
|
||
|
||
|
||
|
||
/**
|
||
* Get the name of the StationtypeAgent that was not found.
|
||
*
|
||
* @return string Name of the StationtypeAgent that was not found
|
||
*/
|
||
public function getClassName()
|
||
{
|
||
return $this->stationtypeName;
|
||
}
|
||
|
||
}
|
||
|
||
?>
|