this post was submitted on 07 Mar 2024
310 points (100.0% liked)

196

16500 readers
3123 users here now

Be sure to follow the rule before you head out.

Rule: You must post before you leave.

^other^ ^rules^

founded 1 year ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[โ€“] quinkin@lemmy.world 25 points 8 months ago (1 children)

Throw(e)

Make your problem someone else's problem.

[โ€“] jbk@discuss.tchncs.de 2 points 8 months ago

Wrap it in a RuntimeException and the compiler will be happy to.