Changeset View
Changeset View
Standalone View
Standalone View
src/differential/ArcanistDifferentialCommitMessageParserException.php
| <?php | <?php | ||||
| /** | /** | ||||
| * Thrown when a commit message isn't parseable. | * Thrown when a commit message isn't parseable. | ||||
| * | |||||
| * @group differential | |||||
| */ | */ | ||||
| final class ArcanistDifferentialCommitMessageParserException extends Exception { | final class ArcanistDifferentialCommitMessageParserException extends Exception { | ||||
| private $parserErrors; | private $parserErrors; | ||||
| public function __construct(array $errors) { | public function __construct(array $errors) { | ||||
| $this->parserErrors = $errors; | $this->parserErrors = $errors; | ||||
| parent::__construct(head($errors)); | parent::__construct(head($errors)); | ||||
| } | } | ||||
| public function getParserErrors() { | public function getParserErrors() { | ||||
| return $this->parserErrors; | return $this->parserErrors; | ||||
| } | } | ||||
| } | } | ||||