mirror of
https://github.com/OpenXE-org/OpenXE.git
synced 2024-11-15 12:37:14 +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');
|
|
}
|
|
}
|