// use Saloon\Http\Response; // //
// class AlfaBankException extends \Exception { //
// public function __construct( protected Response $response, protected ?string $errorCode = null, protected ?string $errorDescription = null ) { $message = "Alfa Bank API Error: [{$errorCode}] {$errorDescription}"; parent::__construct($message, $response->status()); } //
//
// public function getResponse(): Response { return $this->response; } public function getErrorCode(): ?string { return $this->errorCode; } public function getErrorDescription(): ?string { return $this->errorDescription; } //
}