akka/akka-http
Auf GitHub ansehenExceptionHandlerExamplesSpec in docs cannot be copy / pasted
Open
#3.971 geöffnet am 14. Dez. 2021
1 - triagedhelp wantedt:docs
Repository-Metriken
- Stars
- (1.311 Stars)
- PR-Merge-Metriken
- (Durchschn. Merge 1h 17m) (1 gemergte PR in 30 T)
Beschreibung
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