ReviewOS

also looking at this

meemalabs/meema-client-php

Exceptions

#27
Merged glennmichael123 wants to merge exceptions into main
5 files +168 -14
src/Exceptions/InvalidFormatException.phpmodified+13-1
Changes to src/Exceptions/InvalidFormatException.php
@@ -2,6 +2,18 @@
22
33namespace Meema\MeemaApi\Exceptions;
44
5class InvalidFormatException
5use Exception;
6
7class InvalidFormatException extends Exception
68{
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 }
719}