I'm getting the warning `Exception should not be a...
# general-advice
h
I'm getting the warning
Exception should not be an object
, and I want to suppress it because it makes sense in my situation. What
@Suppress
name do I need to use to get rid of the warning? Is there a "suppress all" name?
h
I believe you can compile with
-Xrender-internal-diagnostic-names
to see what diagnostic you have to suppress.
k
Are you aware that using an
object
for exceptions can mess with your stack trace?
h
@Klitos Kyriacou It's an exception specifically meant for control flow, there wasn't really a better option. I've explicitly turned off stack traces for it to increase its speed.