validator->errors()->first(),ResultCode::ERROR); return $this->handlerResponse($throwable,$response); } return $response; } /** * @param Throwable $throwable * @return bool */ public function isValid(Throwable $throwable): bool { return $throwable instanceof ValidationException; } }