Package com.persequor
Interface UncheckedAutoClosable
- All Superinterfaces:
AutoCloseable
This interface is a variant of
AutoCloseable
that allows the close()
method to throw a
RuntimeException
instead of a checked exception. This is useful in cases where you want to use
try-with-resources but your close method doesn't throw any checked exceptions.-
Method Summary
-
Method Details
-
close
- Specified by:
close
in interfaceAutoCloseable
- Throws:
RuntimeException
-