Conditions | 1 |
Paths | 1 |
Total Lines | 9 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
54 | public static function newException(\Exception $e, $method, $path, array $params) |
||
55 | { |
||
56 | $self = new self(sprintf('Api method error: %s : %s', $method, $path), $e->getCode(), $e); |
||
57 | $self->method = $method; |
||
58 | $self->path = $path; |
||
59 | $self->params = $params; |
||
60 | |||
61 | return $self; |
||
62 | } |
||
63 | } |
||
64 |