mirror of
https://github.com/OpenXE-org/OpenXE.git
synced 2024-12-27 15:10:28 +01:00
15 lines
378 B
PHP
15 lines
378 B
PHP
|
<?php
|
||
|
|
||
|
namespace Xentral\Modules\AmazonVendorDF\Exception;
|
||
|
|
||
|
use Psr\Http\Message\ResponseInterface;
|
||
|
use RuntimeException;
|
||
|
|
||
|
class IssueTokenException extends RuntimeException
|
||
|
{
|
||
|
public static function fromResponse(?ResponseInterface $response = null): self
|
||
|
{
|
||
|
return new self($response ? 'exception with response info' : 'exception without response info');
|
||
|
}
|
||
|
}
|