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

HaltException: disable stack traces and suppression. #963

Closed ncruces closed 6 years ago

ncruces commented 6 years ago

Exceptions for flow control are generally frowned upon.

Having done this myself though, disabling stack traces on these at least helps with the performance implications of using exceptions this way.

Since HaltException is not supposed to be caught or logged, stack traces are pretty pointless anyway.