/** * * @param String $msg The message * @param int $code the HttpResponseCode for this exception * @param \Exception $previous * @param string $info Optional extra information on the exception */ public function __construct($msg = '', $code = 200, \Exception $previous = null, $info = null) { parent::__construct($msg, $code, $previous); if ($info) { $this->setInfo($info); } }
public function __construct($msg = '', $code = 200, \Exception $previous = null) { parent::__construct($msg, $code, $previous, 'This is a setup error, please warn the programmer if you see this.'); }