mirror of
https://github.com/v2board/v2board.git
synced 2025-03-13 06:04:42 +08:00
46 lines
808 B
PHP
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;
|
|
}
|
|
}
|