16 lines
328 B
PHP
16 lines
328 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace Phpml\Exception;
|
|
|
|
use Exception;
|
|
|
|
class LibsvmCommandException extends Exception
|
|
{
|
|
public static function failedToRun(string $command, string $reason): self
|
|
{
|
|
return new self(sprintf('Failed running libsvm command: "%s" with reason: "%s"', $command, $reason));
|
|
}
|
|
}
|