-
Notifications
You must be signed in to change notification settings - Fork 39
Expand file tree
/
Copy pathAgentHttpException.php
More file actions
32 lines (28 loc) · 965 Bytes
/
AgentHttpException.php
File metadata and controls
32 lines (28 loc) · 965 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
<?php declare(strict_types=1);
/*
* (c) shopware AG <info@shopware.com>
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Swag\PayPal\AgentCommerce\Exception;
use Shopware\Core\Framework\HttpException;
use Shopware\Core\Framework\Log\Package;
use Swag\PayPal\AgentCommerce\Struct\V1\AgentErrorDetailCollection;
#[Package('checkout')]
abstract class AgentHttpException extends HttpException
{
public function __construct(
int $statusCode,
string $errorCode,
string $message,
array $parameters = [],
protected AgentErrorDetailCollection $details = new AgentErrorDetailCollection(),
?\Throwable $previous = null
) {
parent::__construct($statusCode, $errorCode, $message, $parameters, $previous);
}
public function getDetails(): AgentErrorDetailCollection
{
return $this->details;
}
}