-
Notifications
You must be signed in to change notification settings - Fork 538
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adding more dedicated exceptions (#739)
Co-authored-by: Konrad Abicht <[email protected]>
- Loading branch information
1 parent
f8ae4b4
commit afa8deb
Showing
5 changed files
with
51 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
namespace Smalot\PdfParser\Exception; | ||
|
||
/** | ||
* This Exception is thrown when no PDF data was given. | ||
*/ | ||
class EmptyPdfException extends \Exception | ||
{ | ||
} |
12 changes: 12 additions & 0 deletions
12
src/Smalot/PdfParser/Exception/MissingPdfHeaderException.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
namespace Smalot\PdfParser\Exception; | ||
|
||
/** | ||
* This Exception is thrown when the %PDF- header is missing. | ||
*/ | ||
class MissingPdfHeaderException extends \Exception | ||
{ | ||
} |
12 changes: 12 additions & 0 deletions
12
src/Smalot/PdfParser/Exception/NotImplementedException.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
namespace Smalot\PdfParser\Exception; | ||
|
||
/** | ||
* This Exception is thrown when a functionality has not yet been implemented. | ||
*/ | ||
class NotImplementedException extends \Exception | ||
{ | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters