akka/akka-http

ExceptionHandlerExamplesSpec in docs cannot be copy / pasted

Open

#3,971 创建于 2021年12月14日

在 GitHub 查看
 (0 评论) (0 反应) (0 负责人)Scala (598 fork)batch import
1 - triagedhelp wantedt:docs

仓库指标

Star
 (1,311 star)
PR 合并指标
 (平均合并 1天 10小时) (30 天内合并 2 个 PR)

描述

Some examples are broken again.

The example doesn't compile. The problem that was addressed in this PR needs to be addressed again in the same way. Essentially myExceptionHandler cannot be a top-level entity with respect to a file (in Scala 2), it should be in MyApp. The specification compiles because this snippet is itself in MyExplicitExceptionHandler, but a user looking at the documentation is unlikely to figure that out.

Originally posted by @FlorianCassayre in https://github.com/akka/akka-http/issues/1465#issuecomment-993396956

贡献者指南