Release 1.4.1

The methods defaultIfException, wrapCheckedException and ignoreException don't wrap Errors anymore because they are not checked exceptions.

Release 1.4.0

Add two methods

ignoreException(Statement)
ignoreException(Statement, Class<? extends Throwable>)

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.

Release 1.3.0

Add method

defaultIfException(StatementWithReturnValue statement,
  Class<? extends Throwable> exceptionType, Object defaultValue)

that executes the given statement and returns the default value if the specified type of exception is thrown.

Release 1.2.0

Add two methods

wrapCheckedException(Statement)
wrapCheckedException(StatementWithReturnValue)

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

Release 1.1.1

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

Release 1.1.0

Add a new method

exceptionThrownBy(Statement, Class<? extends Throwable>)

that returns a certain type of exception. This is necessary for verifying the state of custom exceptions.

Release 1.0.1

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

Release 1.0.0

Initial release.