Index

C D E F G I S W 
All Classes and Interfaces|All Packages|Serialized Form

C

com.github.stefanbirkner.fishbowl - package com.github.stefanbirkner.fishbowl
 

D

defaultIfException(StatementWithReturnValue<V>, Class<? extends Throwable>, 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 - Search tag in class com.github.stefanbirkner.fishbowl.Fishbowl
Section

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 provided Statement did 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<T>) - 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 provided Statement did throw an exception that does not have the specified type.
ExceptionWithWrongTypeThrownFailure(Class<? extends Throwable>, 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 - Search tag in class com.github.stefanbirkner.fishbowl.Fishbowl
Section

F

Fishbowl - Class in com.github.stefanbirkner.fishbowl
Fishbowl provides 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<? extends Throwable>) - 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 - Search tag in class com.github.stefanbirkner.fishbowl.Fishbowl
Section

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<V>) - 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 - Search tag in class com.github.stefanbirkner.fishbowl.Fishbowl
Section
WrappedException - Exception Class in com.github.stefanbirkner.fishbowl
Wraps another exception.
WrappedException(Throwable) - Constructor for exception class com.github.stefanbirkner.fishbowl.WrappedException
 
C D E F G I S W 
All Classes and Interfaces|All Packages|Serialized Form