for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace RazonYang\JSend;
class Exception extends \Exception
{
/**
* @var mixed $data error data.
*/
private $data;
* @return mixed
public function getData()
return $this->data;
}
public function __construct($message = '', $code = 0, $previous = null, $data = null)
parent::__construct($message, $code, $previous);
$this->data = $data;