Index
All Classes and Interfaces|All Packages|Serialized Form
C
- com.github.stefanbirkner.fishbowl - package com.github.stefanbirkner.fishbowl
D
- defaultIfException(StatementWithReturnValue, Class, V) - Static method in class com.github.stefanbirkner.fishbowl.Fishbowl
-
Executes the given statement and returns the statement's return value if no exception is thrown or the default value if an exception of the specified type is thrown.
- Default Values - Section in class com.github.stefanbirkner.fishbowl.Fishbowl
E
- evaluate() - Method in interface com.github.stefanbirkner.fishbowl.Statement
-
Execute the statement.
- evaluate() - Method in interface com.github.stefanbirkner.fishbowl.StatementWithReturnValue
-
Computes a value, or throws an exception if unable to do so.
- ExceptionNotThrownFailure - Exception Class in com.github.stefanbirkner.fishbowl
-
This exception is thrown by
Fishbowl.exceptionThrownBy(Statement)if the providedStatementdid not throw an exception. - ExceptionNotThrownFailure() - Constructor for exception class com.github.stefanbirkner.fishbowl.ExceptionNotThrownFailure
-
Creates a new
ExceptionNotThrownFailure. - exceptionThrownBy(Statement) - Static method in class com.github.stefanbirkner.fishbowl.Fishbowl
-
Executes the provided statement and returns the exception that has been thrown by the statement.
- exceptionThrownBy(Statement, Class) - Static method in class com.github.stefanbirkner.fishbowl.Fishbowl
-
Executes the provided statement and returns the exception that has been thrown by the statement if it has the specified type.
- ExceptionWithWrongTypeThrownFailure - Exception Class in com.github.stefanbirkner.fishbowl
-
This exception is thrown by
Fishbowl.exceptionThrownBy(Statement, java.lang.Class)if the providedStatementdid throw an exception that does not have the specified type. - ExceptionWithWrongTypeThrownFailure(Class, Throwable) - Constructor for exception class com.github.stefanbirkner.fishbowl.ExceptionWithWrongTypeThrownFailure
-
Creates a new
ExceptionWithWrongTypeThrownFailure. - expectedType - Variable in exception class com.github.stefanbirkner.fishbowl.ExceptionWithWrongTypeThrownFailure
- Expose Exceptions - Section in class com.github.stefanbirkner.fishbowl.Fishbowl
F
- Fishbowl - Class in com.github.stefanbirkner.fishbowl
-
Fishbowlprovides helper methods for dealing with exceptions. - Fishbowl() - Constructor for class com.github.stefanbirkner.fishbowl.Fishbowl
-
This class only provides static methods.
G
- getExpectedType() - Method in exception class com.github.stefanbirkner.fishbowl.ExceptionWithWrongTypeThrownFailure
-
Returns the type of the expected exception.
- getThrownException() - Method in exception class com.github.stefanbirkner.fishbowl.ExceptionWithWrongTypeThrownFailure
-
Returns the exception that has been thrown.
I
- ignoreException(Statement) - Static method in class com.github.stefanbirkner.fishbowl.Fishbowl
-
Executes the given statement and suppresses any exception thrown by the statement.
- ignoreException(Statement, Class) - Static method in class com.github.stefanbirkner.fishbowl.Fishbowl
-
Executes the given statement and suppresses any exception of the specified type that is thrown by the statement.
- Ignore Exceptions - Section in class com.github.stefanbirkner.fishbowl.Fishbowl
S
- Statement - Interface in com.github.stefanbirkner.fishbowl
-
Code that should be executed by
Fishbowl.exceptionThrownBy(Statement). - StatementWithReturnValue<V> - Interface in com.github.stefanbirkner.fishbowl
-
Code that returns a value if it is executed by
Fishbowl.exceptionThrownBy(Statement).
W
- wrapCheckedException(Statement) - Static method in class com.github.stefanbirkner.fishbowl.Fishbowl
-
Executes the given statement and encloses any checked exception thrown with an unchecked
WrappedException, that is thrown instead. - wrapCheckedException(StatementWithReturnValue) - Static method in class com.github.stefanbirkner.fishbowl.Fishbowl
-
Executes the given statement and encloses any checked exception thrown with an unchecked
WrappedException, that is thrown instead. - Wrap Exceptions - Section in class com.github.stefanbirkner.fishbowl.Fishbowl
- WrappedException - Exception Class in com.github.stefanbirkner.fishbowl
-
Wraps another exception.
- WrappedException(Throwable) - Constructor for exception class com.github.stefanbirkner.fishbowl.WrappedException
All Classes and Interfaces|All Packages|Serialized Form