Initial import from Alltube app
Removed dependency on Config and LocaleManager classes Avoid using generic exceptions
This commit is contained in:
commit
98b74fd6f2
16 changed files with 3935 additions and 0 deletions
19
classes/exceptions/InvalidTimeException.php
Normal file
19
classes/exceptions/InvalidTimeException.php
Normal file
|
@ -0,0 +1,19 @@
|
|||
<?php
|
||||
|
||||
namespace Alltube\Library\Exception;
|
||||
|
||||
/**
|
||||
* Invalid time.
|
||||
*/
|
||||
class InvalidTimeException extends AlltubeLibraryException
|
||||
{
|
||||
|
||||
/**
|
||||
* InvalidTimeException constructor.
|
||||
* @param string $time Invalid time
|
||||
*/
|
||||
public function __construct($time)
|
||||
{
|
||||
parent::__construct('Invalid time: ' . $time);
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue