class Exception
Same name in this branch
- 11.1.x vendor/masterminds/html5/src/HTML5/Exception.php \Masterminds\HTML5\Exception
- 11.1.x vendor/phpunit/phpunit/src/Framework/MockObject/Runtime/Stub/Exception.php \PHPUnit\Framework\MockObject\Stub\Exception
- 11.1.x vendor/phpunit/phpunit/src/Framework/Exception/Exception.php \PHPUnit\Framework\Exception
- 11.1.x vendor/phpunit/phpunit/src/Framework/Constraint/Exception/Exception.php \PHPUnit\Framework\Constraint\Exception
- 11.1.x vendor/phpunit/phpunit/src/TextUI/Configuration/Xml/Exception.php \PHPUnit\TextUI\XmlConfiguration\Exception
- 11.1.x vendor/phpunit/phpunit/src/TextUI/Configuration/Cli/Exception.php \PHPUnit\TextUI\CliArguments\Exception
- 11.1.x vendor/lullabot/php-webdriver/lib/WebDriver/Exception.php \WebDriver\Exception
- 11.1.x vendor/theseer/tokenizer/src/Exception.php \TheSeer\Tokenizer\Exception
- 11.1.x vendor/behat/mink/src/Exception/Exception.php \Behat\Mink\Exception\Exception
- 11.1.x vendor/mck89/peast/lib/Peast/Selector/Exception.php \Peast\Selector\Exception
Syntax exception class. Syntax errors in the source are thrown using this using this exception class.
@author Marco Marchiò <marco.mm89@gmail.com>
@codeCoverageIgnore
Hierarchy
- class \Peast\Syntax\Exception extends \Peast\Syntax\Exception
- class \Peast\Syntax\Exception extends \Peast\Syntax\Exception
Expanded class hierarchy of Exception
1 file declares its use of Exception
- JsOptimizer.php in core/
lib/ Drupal/ Core/ Asset/ JsOptimizer.php
25 string references to 'Exception'
- ErrorListener::onControllerArguments in vendor/
symfony/ http-kernel/ EventListener/ ErrorListener.php - ExceptionDataCollector::getName in vendor/
symfony/ http-kernel/ DataCollector/ ExceptionDataCollector.php - Returns the name of the collector.
- Exporter::prepare in vendor/
symfony/ var-exporter/ Internal/ Exporter.php - Prepares an array of values for VarExporter.
- Formatter::format in vendor/
open-telemetry/ api/ Behavior/ Internal/ LogWriter/ Formatter.php - FullyQualifiedExceptionsSniff::process in vendor/
slevomat/ coding-standard/ SlevomatCodingStandard/ Sniffs/ Namespaces/ FullyQualifiedExceptionsSniff.php - * @phpcsSuppress SlevomatCodingStandard.TypeHints.ParameterTypeHint.MissingNativeTypeHint *
File
-
vendor/
mck89/ peast/ lib/ Peast/ Syntax/ Exception.php, line 20
Namespace
Peast\SyntaxView source
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;
}
}
Members
Title Sort descending | Modifiers | Object type | Summary | Overriden Title | Overrides |
---|---|---|---|---|---|
Exception::$position | protected | property | Error position | Overrides Exception::$position | 1 |
Exception::getPosition | public | function | Returns the error position | Overrides Exception::getPosition | 1 |
Exception::__construct | public | function | Class constructor | Overrides Exception::__construct | 1 |