for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/*
* This file is part of the AMFWebServicesClientBundle package.
*
* (c) Amine Fattouch <http://github.com/fattouchsquall>
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace AMF\WebServicesClientBundle\Rest\Exception;
/**
* Exception class.
* @author Mohamed Amine Fattouch <[email protected]>
class RestException extends \Exception
{
* @var array
protected $data;
* The constructor class.
* @param string $message The internal exception message.
* @param integer $code The internal exception code.
* @param \Exception $previous The previous exception.
* @param array $data The wrong data.
public function __construct($message = null, $code = 0, \Exception $previous = null, array $data = [])
parent::__construct($message, $code, $previous);
$this->data = $data;
}
* The getter for data.
* @return array
public function getData()
return $this->data;