* @copyright 2010-2014 André Rothe * @license http://www.debian.org/misc/bsd.license BSD License (3 Clause) * @version SVN: $Id$ * */ namespace PHPSQLParser\exceptions; use InvalidArgumentException; /** * This exception will occur in the parser, if the given SQL statement * is not a String type. * * @author André Rothe * @license http://www.debian.org/misc/bsd.license BSD License (3 Clause) * */ class InvalidParameterException extends InvalidArgumentException { protected $argument; public function __construct($argument) { $this->argument = $argument; parent::__construct("no SQL string to parse: \n" . $argument, 10); } public function getArgument() { return $this->argument; } } ?>