lib/Exception/Base.php
<?php
namespace PromisePay\Exception;
use Exception;
/**
* Class Base
* @package PromisePay\Exception
*/
abstract class Base extends Exception{
/**
* @param string $message
* @param null $httpStatus
* @param null $httpBody
* @param null $jsonBody
*/
public function __construct(
$message,
$httpStatus = null,
$httpBody = null,
$jsonBody = null
) {
parent::__construct($message);
$this->httpStatus = $httpStatus;
$this->httpBody = $httpBody;
$this->jsonBody = $jsonBody;
}
/**
* @return null
*/
public function getHttpStatus()
{
return $this->httpStatus;
}
/**
* @return null
*/
public function getHttpBody()
{
return $this->httpBody;
}
/**
* @return null
*/
public function getJsonBody()
{
return $this->jsonBody;
}
}