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

196

16488 readers
1686 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
[โ€“] [email protected] 25 points 8 months ago (1 children)

Throw(e)

Make your problem someone else's problem.

[โ€“] [email protected] 2 points 8 months ago

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