-
Notifications
You must be signed in to change notification settings - Fork 44
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #113 from RonasIT/93-add-exception-for-invalid-doc…
…umentation-viewer feat: add exception for invalid documentation_viewer configuration.
- Loading branch information
Showing
3 changed files
with
50 additions
and
0 deletions.
There are no files selected for viewing
16 changes: 16 additions & 0 deletions
16
src/Exceptions/UnsupportedDocumentationViewerException.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,16 @@ | ||
<?php | ||
|
||
namespace RonasIT\Support\AutoDoc\Exceptions; | ||
|
||
use Exception; | ||
|
||
class UnsupportedDocumentationViewerException extends Exception | ||
{ | ||
public function __construct(string $invalidViewer) | ||
{ | ||
parent::__construct( | ||
"The documentation viewer '{$invalidViewer}' does not exists." | ||
. " Please check that the 'documentation_viewer' key of your auto-doc.php config has one of valid values." | ||
); | ||
} | ||
} |
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