OpenXE/classes/Modules/AmazonVendorDF/Exception/IssueTokenException.php

15 lines
378 B
PHP
Raw Normal View History

2021-05-21 08:49:41 +02:00
<?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');
}
}