perwendel / spark

A simple expressive web framework for java. Spark has a kotlin DSL https://github.com/perwendel/spark-kotlin
Apache License 2.0
9.64k stars 1.56k forks source link

Cannot catch and respond to all exceptions #948

Closed iamjpotts closed 5 years ago

iamjpotts commented 6 years ago

Type parameter on Service::exception() extends Exception rather than Throwable.

Allow user of the api to decide if they want to catch Throwables or not.