for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Napp\Core\Api\Exceptions\Exceptions;
use Symfony\Component\HttpFoundation\Response;
/**
* Class ApiInternalCallException.
*/
class ApiInternalCallException extends \RuntimeException
{
* @var Response
protected $response;
* @var string
protected $exceptionMessage;
* @var \Exception
protected $previousException;
* @param Response $response
* @param string $message
public function __construct(Response $response, $message = 'There was an error while processing your request')
$this->response = $response;
$this->exceptionMessage = $message;
$this->message = $message;
$this->previousException = $response->exception;
exception
Symfony\Component\HttpFoundation\Response
}
* @return Response
public function getResponse()
return $this->response;
* @return string
public function getExceptionMessage()
return $this->exceptionMessage;
* @return \Exception
public function getPreviousException()
return $this->previousException;