for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/*
* This file is part of the PhpMob package.
*
* (c) Ishmael Doss <[email protected]>
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
declare(strict_types=1);
namespace PhpMob\Omise\Exception;
use PhpMob\Omise\Domain\Error;
/**
* @author Ishmael Doss <[email protected]>
final class InvalidResponseException extends \Exception
{
* @var Error
public $error;
public function __construct(Error $error, $code = 0, \Throwable $previous = null)
$this->error = $error;
parent::__construct($error->message, $code, $previous);
}