We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 666d2d6 + 842dc94 commit 292e11fCopy full SHA for 292e11f
src/Howtomakeaturn/PDFInfo/Exceptions/CommandNotFoundException.php
@@ -0,0 +1,6 @@
1
+<?php
2
+namespace Howtomakeaturn\PDFInfo\Exceptions;
3
+
4
+use \Exception;
5
6
+class CommandNotFoundException extends Exception{};
src/Howtomakeaturn/PDFInfo/PDFInfo.php
@@ -63,6 +63,8 @@ private function loadOutput()
63
throw new Exceptions\PDFPermissionException();
64
} else if ( $returnVar === 99 ){
65
throw new Exceptions\OtherException();
66
+ } else if ( $returnVar === 127 ){
67
+ throw new Exceptions\CommandNotFoundException();
68
}
69
70
$this->output = $output;
0 commit comments