Files
fotospiel-app/app/Services/PayPal/Exceptions/PayPalException.php
2026-02-04 12:18:14 +01:00

24 lines
473 B
PHP

<?php
namespace App\Services\PayPal\Exceptions;
use RuntimeException;
class PayPalException extends RuntimeException
{
public function __construct(string $message, private readonly ?int $status = null, private readonly array $context = [])
{
parent::__construct($message, $status ?? 0);
}
public function status(): ?int
{
return $this->status;
}
public function context(): array
{
return $this->context;
}
}