for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace TelegramBot\Api;
/**
* Class HttpException
*
* @codeCoverageIgnore
* @package TelegramBot\Api
*/
class HttpException extends Exception
{
* @var array
protected $parameters = [];
* HttpException constructor.
* @param string $message [optional] The Exception message to throw.
* @param int $code [optional] The Exception code.
* @param \Throwable|\Exception $previous [optional] The previous throwable used for the exception chaining.
* @param array $parameters [optional] Array of parameters returned from API.
public function __construct($message = '', $code = 0, $previous = null, $parameters = [])
$this->parameters = $parameters;
parent::__construct($message, $code, $previous);
}
* @return array
public function getParameters()
return $this->parameters;