3 ms·
throwing a Exception would actually make the code as horrible as it already was. You would either need a static method that transforms the exception into a runt
by merb 11y ago
throwing a Exception would actually make the code as horrible as it already was. You would either need a static method that transforms the exception into a runtime exception or you would need a catch block that never occurs
- masklinn 11y agoorElseThrow throws an unchecked exception.