mirror of
https://github.com/wbbaddons/Tims-Chat.git
synced 2024-12-22 21:40:08 +00:00
8fe56d9e01
It provides better error messages for the user
33 lines
663 B
PHP
33 lines
663 B
PHP
<?php
|
|
namespace chat\system\command;
|
|
|
|
/**
|
|
* Thrown when a command is not found.
|
|
*
|
|
* @author Tim Düsterhus
|
|
* @copyright 2010-2013 Tim Düsterhus
|
|
* @license Creative Commons Attribution-NonCommercial-ShareAlike <http://creativecommons.org/licenses/by-nc-sa/3.0/legalcode>
|
|
* @package be.bastelstu.chat
|
|
* @subpackage system.chat.command
|
|
*/
|
|
class NotFoundException extends \Exception {
|
|
/**
|
|
* given command
|
|
* @var string
|
|
*/
|
|
private $command = '';
|
|
|
|
public function __construct($command) {
|
|
$this->command = $command;
|
|
}
|
|
|
|
/**
|
|
* Returns the given command
|
|
*
|
|
* @return string
|
|
*/
|
|
public function getCommand() {
|
|
return $this->command;
|
|
}
|
|
}
|