First Local Commit - After Clean up.
Signed-off-by: Rick Hays <rhays@haysgang.com>
This commit is contained in:
22
system/Format/Exceptions/FormatException.php
Normal file
22
system/Format/Exceptions/FormatException.php
Normal file
@@ -0,0 +1,22 @@
|
||||
<?php namespace CodeIgniter\Format\Exceptions;
|
||||
|
||||
use CodeIgniter\Exceptions\ExceptionInterface;
|
||||
|
||||
class FormatException extends \RuntimeException implements ExceptionInterface
|
||||
{
|
||||
public static function forInvalidJSON(string $error = null)
|
||||
{
|
||||
return new static(lang('Format.invalidJSON', [$error]));
|
||||
}
|
||||
|
||||
/**
|
||||
* This will never be thrown in travis-ci
|
||||
*
|
||||
* @codeCoverageIgnore
|
||||
*/
|
||||
public static function forMissingExtension()
|
||||
{
|
||||
return new static(lang('Format.missingExtension'));
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user