v2board/library/Cryptomus/RequestBuilderException.php
2025-02-17 19:11:08 +03:00

46 lines
808 B
PHP

<?php
namespace Library\Cryptomus;
final class RequestBuilderException extends \Exception
{
/**
* @var string
*/
private $method;
/**
* @var array
*/
private $errors;
/**
* @param string $message
* @param int $responseCode
* @param string $uri
* @param null|mixed $previous
*/
public function __construct($message, $responseCode, $uri, $errors = [], $previous = null)
{
$this->method = $uri;
$this->errors = $errors;
parent::__construct($message, $responseCode, $previous);
}
/**
* @return string
*/
public function getMethod()
{
return $this->method;
}
/**
* @return array
*/
public function getErrors()
{
return $this->errors;
}
}