【发布时间】:2012-08-26 11:41:12
【问题描述】:
我使用数组抛出异常,如下所示:
$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]]])
有什么想法吗?
【问题讨论】:
标签: php exception exception-handling