php-ml/src/Exception/LibsvmCommandException.php

16 lines
328 B
PHP
Raw Normal View History

<?php
declare(strict_types=1);
namespace Phpml\Exception;
use Exception;
class LibsvmCommandException extends Exception
{
2018-01-26 21:07:22 +00:00
public static function failedToRun(string $command, string $reason): self
{
2018-01-26 21:07:22 +00:00
return new self(sprintf('Failed running libsvm command: "%s" with reason: "%s"', $command, $reason));
}
}