-
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 #108 from RonasIT/45-throw-exception-for-empty-or-…
…not-exists-files Throw exception for empty or not exists files
- Loading branch information
Showing
4 changed files
with
56 additions
and
22 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,13 @@ | ||
<?php | ||
|
||
namespace RonasIT\Support\AutoDoc\Exceptions; | ||
|
||
use Exception; | ||
|
||
class DocFileNotExistsException extends Exception | ||
{ | ||
public function __construct(string $filename) | ||
{ | ||
parent::__construct("Doc file '{$filename}' doesn't exist."); | ||
} | ||
} |
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 EmptyDocFileException extends Exception | ||
{ | ||
public function __construct(string $filename) | ||
{ | ||
parent::__construct("Doc file '{$filename}' is empty."); | ||
} | ||
} |
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