Initial import from Alltube app

Removed dependency on Config and LocaleManager classes
Avoid using generic exceptions
This commit is contained in:
Pierre Rudloff 2020-06-20 19:04:32 +02:00
commit 98b74fd6f2
16 changed files with 3935 additions and 0 deletions

View 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);
}
}