src/Exception/OmsGeneralErrorException.php 1 location
|
@@ 7-16 (lines=10) @@
|
| 4 |
|
|
| 5 |
|
namespace Lamoda\OmsClient\Exception; |
| 6 |
|
|
| 7 |
|
final class OmsGeneralErrorException extends \RuntimeException implements OmsClientExceptionInterface |
| 8 |
|
{ |
| 9 |
|
public static function becauseOfError(\Throwable $exception): self |
| 10 |
|
{ |
| 11 |
|
return new static(sprintf( |
| 12 |
|
'Request to OMS finished with error "%s"', |
| 13 |
|
$exception->getMessage() |
| 14 |
|
), 0, $exception); |
| 15 |
|
} |
| 16 |
|
} |
src/Exception/OmsSignerErrorException.php 1 location
|
@@ 7-16 (lines=10) @@
|
| 4 |
|
|
| 5 |
|
namespace Lamoda\OmsClient\Exception; |
| 6 |
|
|
| 7 |
|
final class OmsSignerErrorException extends \RuntimeException implements OmsClientExceptionInterface |
| 8 |
|
{ |
| 9 |
|
public static function becauseOfError(\Throwable $exception): self |
| 10 |
|
{ |
| 11 |
|
return new static(sprintf( |
| 12 |
|
'Signer request finished with an error "%s"', |
| 13 |
|
$exception->getMessage() |
| 14 |
|
), 0, $exception); |
| 15 |
|
} |
| 16 |
|
} |