So I've been working with Java for a little while now. I technically am still new to the language.
I have created a couple custom errors for a personal project I'm working on and I was wondering if there was anyway to use the methods that throw these errors without wrapping try-catch
blocks around it?
The method that throws these errors gets used a fair bit and each individual statement shouldn't have to be tried.
It's also a problem that anyone who is new to Java and/or someone who doesn't read the documentation won't know about.
Is there any way to run these methods without having to try
each one, and what would be the proper way to document these errors?