for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
namespace DaveLiddament\StaticAnalysisResultsBaseliner\Domain\ResultsParser;
use DaveLiddament\StaticAnalysisResultsBaseliner\Domain\Common\SarbException;
/**
* Used to for when importing a BaseLine file fails.
*/
final class AnalysisResultsImportException extends SarbException
{
public static function fromException(Identifier $identifier, \Exception $e): self
$message = <<<EOF
Failed to parse analysis results. Have you supplied the data for format [{$identifier->getCode()}].
{$e->getMessage()}
EOF;
return new self($message, 0, $e);
}