for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
namespace Budgegeria\IntlSort\Exception;
use Exception;
class IntlSortException extends Exception
{
public static function errorOnSort(string $errorMessage): self
return new self(sprintf('An error occurred during the sort-process: %s.', $errorMessage));
}
public static function invalidLocale(string $locale): self
return new self(sprintf('Could not create Collator instance because of invalid locale "%s".', $locale));