Suppressing exceptions
so I've a method which possibly can throw 6 exceptions in signature, but some of them can't be thrown unless u messed up with code and changed constants
Is it good idea to just add try/catch and ignore them?
method sign:
4 Replies
⌛ This post has been reserved for your question.
Hey @XION! Please useTIP: Narrow down your issue to simple and precise questions to maximize the chance that others will reply in here./closeor theClose Postbutton above when your problem is solved. Please remember to follow the help guidelines. This post will be automatically marked as dormant after 300 minutes of inactivity.
If these should never happen and it happening would be a programing error, you might want to catch and re-throw/wrap them as unchecked exceptions
or you might generally want to wrap them in some exception specific to your logic
ty
Post Closed
This post has been closed by <@564846439222738964>.