for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace TestMonitor\DoneDone\Exceptions;
class InvalidDataException extends Exception
{
/**
* The given data.
*
* @var mixed
*/
protected $data;
* Create a new exception instance.
* @param mixed $data
public function __construct($data)
parent::__construct('The given data contains invalid data and cannot be decoded.');
$this->data = $data;
}
* @return mixed
public function data()
return $this->data;