On Sun, Jul 2, 2023 at 8:53 PM Alex Herbert <alex.d.herb...@gmail.com> wrote:

>     public static boolean isUnchecked(final Throwable throwable) {
>         return (throwable instanceof Error) || (throwable instanceof
> RuntimeException);
>     }

Not quite. It's also possible for someone to define a subclass of
Throwable directly that is neither an Exception nor an Error.


-- 
Elliotte Rusty Harold
elh...@ibiblio.org

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@commons.apache.org
For additional commands, e-mail: dev-h...@commons.apache.org

Reply via email to