| 1 | <?php |
||
| 11 | class RepositoryException extends \Exception |
||
| 12 | { |
||
| 13 | |||
| 14 | /** |
||
| 15 | * @param $responseContent |
||
| 16 | * |
||
| 17 | * @return RepositoryException |
||
| 18 | */ |
||
| 19 | public static function wrongFormat($responseContent) |
||
| 23 | |||
| 24 | /** |
||
| 25 | * @param Segment $segment |
||
| 26 | * |
||
| 27 | * @return RepositoryException |
||
| 28 | */ |
||
| 29 | public static function missingId(Segment $segment) |
||
| 33 | |||
| 34 | /** |
||
| 35 | * @param RepositoryResponse $repositoryResponse |
||
| 36 | * |
||
| 37 | * @return RepositoryException |
||
| 38 | */ |
||
| 39 | public static function failed(RepositoryResponse $repositoryResponse) |
||
| 43 | |||
| 44 | /**+ |
||
| 45 | * @param $missingIndex |
||
| 46 | * |
||
| 47 | * @return RepositoryException |
||
| 48 | */ |
||
| 49 | public static function missingIndex($missingIndex) |
||
| 53 | } |
||
| 54 |