also looking at this
Exceptions
#27
5 files
+168
-14
| @@ -2,6 +2,18 @@ | ||
| 2 | 2 | |
| 3 | 3 | namespace Meema\MeemaApi\Exceptions; |
| 4 | 4 | |
| 5 | class InvalidFormatException | |
| 5 | use Exception; | |
| 6 | ||
| 7 | class InvalidFormatException extends Exception | |
| 6 | 8 | { |
| 9 | /** | |
| 10 | * Construct exception. | |
| 11 | * | |
| 12 | * @param string $message | |
| 13 | */ | |
| 14 | public function __construct(string $message = null) | |
| 15 | { | |
| 16 | parent::__construct($message ?? 'Error on line '.$this->getLine().' in '.$this->getFile() | |
| 17 | .' ID is not a valid integer'); | |
| 18 | } | |
| 7 | 19 | } |