* @copyright 2014 Heinrich-Heine-Universität Düsseldorf * @license http://www.gnu.org/licenses/gpl.html * @link https://bitbucket.org/coderkun/the-legend-of-z */ namespace hhu\z\exceptions; /** * Exception: StationtypeAgent not valid. * * @author Oliver Hanraths */ class StationtypeAgentNotValidException extends \nre\core\Exception { /** * Error code * * @var int */ const CODE = 402; /** * Error message * * @var string */ const MESSAGE = 'StationtypeAgent not valid'; /** * Name of the invalid class * * @var string */ private $stationtypeName; /** * Construct a new exception. * * @param string $stationtypeName Name of the invalid StationtypeAgent * @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 value $this->stationtypeName = $stationtypeName; } /** * Get the name of the invalid StationtypeAgent. * * @return string Name of the invalid StationtypeAgent */ public function getClassName() { return $this->stationtypeName; } } ?>