Exception.php
Same filename in this branch
- 11.1.x vendor/masterminds/html5/src/HTML5/Exception.php
- 11.1.x vendor/phpunit/php-code-coverage/src/Exception/Exception.php
- 11.1.x vendor/phpunit/php-timer/src/exceptions/Exception.php
- 11.1.x vendor/phpunit/phpunit/src/Framework/MockObject/Runtime/Stub/Exception.php
- 11.1.x vendor/phpunit/phpunit/src/Framework/MockObject/Generator/Exception/Exception.php
- 11.1.x vendor/phpunit/phpunit/src/Framework/MockObject/Exception/Exception.php
- 11.1.x vendor/phpunit/phpunit/src/Framework/Exception/Exception.php
- 11.1.x vendor/phpunit/phpunit/src/Framework/Constraint/Exception/Exception.php
- 11.1.x vendor/phpunit/phpunit/src/TextUI/Exception/Exception.php
- 11.1.x vendor/phpunit/phpunit/src/TextUI/Configuration/Exception/Exception.php
- 11.1.x vendor/phpunit/phpunit/src/TextUI/Configuration/Xml/Exception.php
- 11.1.x vendor/phpunit/phpunit/src/TextUI/Configuration/Cli/Exception.php
- 11.1.x vendor/phpunit/phpunit/src/Exception.php
- 11.1.x vendor/phpunit/phpunit/src/Metadata/Exception/Exception.php
- 11.1.x vendor/phpunit/phpunit/src/Event/Exception/Exception.php
- 11.1.x vendor/phpunit/phpunit/src/Util/Exception/Exception.php
- 11.1.x vendor/phpunit/phpunit/src/Runner/Exception/Exception.php
- 11.1.x vendor/phpunit/php-invoker/src/exceptions/Exception.php
- 11.1.x vendor/phpunit/php-text-template/src/exceptions/Exception.php
- 11.1.x vendor/phar-io/version/src/exceptions/Exception.php
- 11.1.x vendor/phar-io/manifest/src/exceptions/Exception.php
- 11.1.x vendor/lullabot/php-webdriver/lib/WebDriver/Exception.php
- 11.1.x vendor/theseer/tokenizer/src/Exception.php
- 11.1.x vendor/sebastian/cli-parser/src/exceptions/Exception.php
- 11.1.x vendor/sebastian/diff/src/Exception/Exception.php
- 11.1.x vendor/sebastian/code-unit/src/exceptions/Exception.php
- 11.1.x vendor/sebastian/type/src/exception/Exception.php
- 11.1.x vendor/sebastian/complexity/src/Exception/Exception.php
- 11.1.x vendor/sebastian/global-state/src/exceptions/Exception.php
- 11.1.x vendor/sebastian/lines-of-code/src/Exception/Exception.php
- 11.1.x vendor/sebastian/comparator/src/exceptions/Exception.php
- 11.1.x vendor/behat/mink/src/Exception/Exception.php
- 11.1.x vendor/php-http/httplug/src/Exception.php
- 11.1.x vendor/php-http/discovery/src/Exception.php
- 11.1.x vendor/phpspec/prophecy/src/Prophecy/Exception/Exception.php
- 11.1.x vendor/mck89/peast/lib/Peast/Selector/Exception.php
- 11.1.x vendor/pear/pear_exception/PEAR/Exception.php
Namespace
Peast\SyntaxFile
-
vendor/
mck89/ peast/ lib/ Peast/ Syntax/ Exception.php
View source
<?php
/**
* This file is part of the Peast package
*
* (c) Marco Marchiò <marco.mm89@gmail.com>
*
* For the full copyright and license information refer to the LICENSE file
* distributed with this source code
*/
namespace Peast\Syntax;
/**
* Syntax exception class. Syntax errors in the source are thrown using this
* using this exception class.
*
* @author Marco Marchiò <marco.mm89@gmail.com>
*
* @codeCoverageIgnore
*/
class Exception extends \Exception {
/**
* Error position
*
* @var Position
*/
protected $position;
/**
* Class constructor
*
* @param string $message Error message
* @param Position $position Error position
*/
public function __construct($message, Position $position) {
parent::__construct($message);
$this->position = $position;
}
/**
* Returns the error position
*
* @return Position
*/
public function getPosition() {
return $this->position;
}
}
Classes
Title | Deprecated | Summary |
---|---|---|
Exception | Syntax exception class. Syntax errors in the source are thrown using this using this exception class. |