diff --git a/src/FFMpeg/Binary.php b/src/FFMpeg/Binary.php index ddd0b4a..864a721 100644 --- a/src/FFMpeg/Binary.php +++ b/src/FFMpeg/Binary.php @@ -30,7 +30,7 @@ abstract class Binary implements AdapterInterface { if ('' === $binary = self::autodetect(static::getBinaryName())) { - throw new \Exception('Binary not found'); + throw new Exception\BinaryNotFoundException('Binary not found'); } return new static($binary, $logger); @@ -43,7 +43,7 @@ abstract class Binary implements AdapterInterface if ( ! $process->isSuccessful() && ! $bypass_errors) { - throw new Exception\RuntimeException('Failed to execute ' . $command); + throw new \RuntimeException('Failed to execute ' . $command); } $result = $process->getOutput(); diff --git a/src/FFMpeg/Exception/BinaryNotFoundException.php b/src/FFMpeg/Exception/BinaryNotFoundException.php new file mode 100644 index 0000000..c8928b4 --- /dev/null +++ b/src/FFMpeg/Exception/BinaryNotFoundException.php @@ -0,0 +1,8 @@ +