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 | * @return RepositoryException |
||
27 | */ |
||
28 | public static function missingSegmentBillingContent() |
||
32 | |||
33 | /** |
||
34 | * @param Segment $segment |
||
35 | * |
||
36 | * @return self |
||
37 | */ |
||
38 | public static function missingId($segment) |
||
42 | |||
43 | /** |
||
44 | * @param SegmentBilling $segment |
||
45 | * |
||
46 | * @return self |
||
47 | */ |
||
48 | public static function missingSegmentBillingId($segment) |
||
52 | |||
53 | /** |
||
54 | * @param RepositoryResponse $repositoryResponse |
||
55 | * |
||
56 | * @return self |
||
57 | */ |
||
58 | public static function failed(RepositoryResponse $repositoryResponse) |
||
62 | |||
63 | /** |
||
64 | * @param string $reason |
||
65 | * |
||
66 | * @return self |
||
67 | */ |
||
68 | public static function genericFailed($reason) |
||
72 | |||
73 | /**+ |
||
74 | * @param $missingIndex |
||
75 | * |
||
76 | * @return self |
||
77 | */ |
||
78 | public static function missingIndex($missingIndex) |
||
82 | } |
||
83 |