phpmyadmin/libraries/sql-parser/src/Exceptions/LexerException.php
Dan Ungureanu ee6dd2e7c0 Added sql-parser with a modified version of the Composer autoloader to load the library.
Signed-off-by: Dan Ungureanu <udan1107@gmail.com>
2015-07-10 23:18:10 +03:00

42 lines
711 B
PHP

<?php
namespace SqlParser\Exceptions;
use SqlParser\Token;
/**
* Exception thrown by the lexer.
*/
class LexerException extends \Exception
{
/**
* The character that produced this error.
*
* @var string
*/
public $ch;
/**
* The index of the character that produced this error.
*
* @var int
*/
public $pos;
/**
* Constructor.
*
* @param string $message
* @param string $ch
* @param int $positiion
* @param int $code
*/
public function __construct($message = '', $ch = '', $pos = 0, $code = 0)
{
parent::__construct($message, $code);
$this->ch = $ch;
$this->pos = $pos;
}
}