mirror of
https://github.com/v2board/v2board.git
synced 2025-07-08 03:30:05 +08:00
add cryptomus payment
This commit is contained in:
45
library/Cryptomus/RequestBuilderException.php
Normal file
45
library/Cryptomus/RequestBuilderException.php
Normal file
@ -0,0 +1,45 @@
|
||||
<?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;
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user