The methods defaultIfException
,
wrapCheckedException
and ignoreException
don't wrap
Error
s anymore because they are not checked exceptions.
Add two methods
that are execute the given statements and suppress exceptions that are thrown by these statements. The first method suppresses all exceptions while the second method suppresses only exceptions of the specified type.
Add method
that executes the given statement and returns the default value if the specified type of exception is thrown.
Add two methods
that are executing the given statements and wrap checked exceptions thrown with a RuntimeException that is thrown instead. This avoids that the exception's class must be added to the throws part of the method's signature
Recompile the library with JDK 7. Release 1.1.0 has been created with JDK 8 and because of this the library cannot be used with JDK < 8. Compilation aborts with the message
Unsupported major.minor version 52.0
Add a new method
that returns a certain type of exception. This is necessary for verifying the state of custom exceptions.
Recompile the library with JDK 7. Release 1.0.0 has been created with JDK 8 and because of this the library cannot be used with JDK < 8. Compilation aborts with the message
Unsupported major.minor version 52.0
Initial release.