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
20
classes/exceptions/AvconvException.php
Normal file
20
classes/exceptions/AvconvException.php
Normal file
|
@ -0,0 +1,20 @@
|
|||
<?php
|
||||
|
||||
namespace Alltube\Library\Exception;
|
||||
|
||||
use Throwable;
|
||||
|
||||
/**
|
||||
* Can't find avconv or ffmpeg.
|
||||
*/
|
||||
class AvconvException extends AlltubeLibraryException
|
||||
{
|
||||
/**
|
||||
* AvconvException constructor.
|
||||
* @param string $path Path to avconv or ffmpeg.
|
||||
*/
|
||||
public function __construct($path)
|
||||
{
|
||||
parent::__construct("Can't find avconv or ffmpeg at " . $path . '.');
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue