scotty-web / scotty

Haskell web framework inspired by Ruby's Sinatra, using WAI and Warp (Official Repository)
http://hackage.haskell.org/package/scotty
BSD 3-Clause "New" or "Revised" License
1.71k stars 132 forks source link

Document exception handling logic #335

Closed ocramz closed 7 months ago

ocramz commented 9 months ago

I think we should have a couple examples at the top of the Haddocks, or doctests even better, that show what to expect from the new exception handling logic.

closes #237

zachary822 commented 8 months ago

I was about to ask this and then I found this issue. Can you give a small example of catching all errors indiscriminately?

ocramz commented 7 months ago

237 should be implemented as an additional case in the exceptions example binary

ocramz commented 7 months ago

@zachary822 the example binaries are all up to date with the library, could you share what questions/doubts you have about exception handling?

zachary822 commented 7 months ago

I have managed to figure it out. Thank you!