我使用数组抛出异常,如下所示:
$response = array('login_email' => '<div class="warning">Your email and / or password were incorrect</div>');
throw new \Exception($response);
我要抓住的是:
Error: Wrong parameters for Exception([string $exception [, long $code [, Exception $previous = NULL]]])
任何的想法?