for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Iris\Exceptions;
class EventNotFound extends \InvalidArgumentException
{
/**
* @param string $eventName
* @param string $status
* @param Exception $previous
*/
public function __construct($eventName, $status, \Exception $previous = null)
$message = sprintf('Event %s is not found, the current status is %s', $eventName, $status);
parent::__construct($message, 405, $previous);
}