We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
如题.版本 krisss/docker-webman:8.0-cli-alpine 需要按文档重写handler方法 protected function solveAllException(Throwable $e) { if ($e instanceof BaseException) { $this->statusCode = $e->statusCode; $this->header = $e->header; $this->errorCode = $e->errorCode; $this->errorMessage = $e->errorMessage; $this->error = $e->error; if (isset($e->data)) { $this->responseData = array_merge($this->responseData, $e->data); } return ; // 在这里直接返回,否则会被下面的方法接管结果.导致500,Internal Server Error } $this->solveExtraException($e); }
The text was updated successfully, but these errors were encountered:
验证器是抛出验证器异常ValidateException
ValidateException
Sorry, something went wrong.
No branches or pull requests
如题.版本 krisss/docker-webman:8.0-cli-alpine
需要按文档重写handler方法
protected function solveAllException(Throwable $e)
{
if ($e instanceof BaseException) {
$this->statusCode = $e->statusCode;
$this->header = $e->header;
$this->errorCode = $e->errorCode;
$this->errorMessage = $e->errorMessage;
$this->error = $e->error;
if (isset($e->data)) {
$this->responseData = array_merge($this->responseData, $e->data);
}
return ; // 在这里直接返回,否则会被下面的方法接管结果.导致500,Internal Server Error
}
$this->solveExtraException($e);
}
The text was updated successfully, but these errors were encountered: