Update website

This commit is contained in:
Guilhem Lavaux 2024-11-23 21:32:22 +01:00
parent ec39d37f63
commit b2868c260d
22 changed files with 26 additions and 26 deletions

View file

@ -1,19 +0,0 @@
<?php
/*
* This file is part of the BibTex Parser.
*
* (c) Renan de Lima Barbosa <renandelima@gmail.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace RenanBr\BibTexParser\Exception;
/**
* Interface for package exceptions.
*/
interface ExceptionInterface
{
}

View file

@ -1,35 +0,0 @@
<?php
/*
* This file is part of the BibTex Parser.
*
* (c) Renan de Lima Barbosa <renandelima@gmail.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace RenanBr\BibTexParser\Exception;
use Exception;
class ParserException extends Exception implements ExceptionInterface
{
/**
* @param string $character
* @param int $line
* @param int $column
*/
public static function unexpectedCharacter($character, $line, $column)
{
// Avoid var_export() weird treatment for \0
$character = "\0" === $character ? "'\\0'" : var_export($character, true);
return new self(sprintf(
'Unexpected character %s at line %d column %d',
$character,
$line,
$column
));
}
}

View file

@ -1,18 +0,0 @@
<?php
/*
* This file is part of the BibTex Parser.
*
* (c) Renan de Lima Barbosa <renandelima@gmail.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace RenanBr\BibTexParser\Exception;
use Exception;
class ProcessorException extends Exception implements ExceptionInterface
{
}