1 | <?php |
||
12 | class RepositoryException extends \Exception |
||
13 | { |
||
14 | |||
15 | /** |
||
16 | * @param $responseContent |
||
17 | * |
||
18 | * @return self |
||
19 | */ |
||
20 | public static function wrongFormat($responseContent) |
||
24 | |||
25 | /** |
||
26 | * @param Segment $segment |
||
27 | * |
||
28 | * @return self |
||
29 | */ |
||
30 | public static function missingId($segment) |
||
34 | |||
35 | /** |
||
36 | * @param SegmentBilling $segment |
||
37 | * |
||
38 | * @return self |
||
39 | */ |
||
40 | public static function missingSegmentBillingId($segment) |
||
44 | |||
45 | /** |
||
46 | * @param RepositoryResponse $repositoryResponse |
||
47 | * |
||
48 | * @return self |
||
49 | */ |
||
50 | public static function failed(RepositoryResponse $repositoryResponse) |
||
54 | |||
55 | /** |
||
56 | * @param string $reason |
||
57 | * |
||
58 | * @return self |
||
59 | */ |
||
60 | public static function genericFailed($reason) |
||
64 | |||
65 | /**+ |
||
66 | * @param $missingIndex |
||
67 | * |
||
68 | * @return self |
||
69 | */ |
||
70 | public static function missingIndex($missingIndex) |
||
74 | } |
||
75 |