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
18
classes/exceptions/InvalidProtocolConversionException.php
Normal file
18
classes/exceptions/InvalidProtocolConversionException.php
Normal file
|
@ -0,0 +1,18 @@
|
|||
<?php
|
||||
|
||||
namespace Alltube\Library\Exception;
|
||||
|
||||
/**
|
||||
* Invalid conversion.
|
||||
*/
|
||||
class InvalidProtocolConversionException extends AlltubeLibraryException
|
||||
{
|
||||
/**
|
||||
* InvalidProtocolConversionException constructor.
|
||||
* @param string $protocol Protocol
|
||||
*/
|
||||
public function __construct($protocol)
|
||||
{
|
||||
parent::__construct($protocol . ' protocol is not supported in conversions.');
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue