-
Notifications
You must be signed in to change notification settings - Fork 43
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add exception for invalid documentation_viewer configuration.
- Loading branch information
Konstantin Lapkovsky
committed
Nov 6, 2023
1 parent
5c824da
commit ff0d072
Showing
3 changed files
with
46 additions
and
0 deletions.
There are no files selected for viewing
13 changes: 13 additions & 0 deletions
13
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,13 @@ | ||
<?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