A B C D E F G H I M P R S T V W

A

AbstractThrowableProcessingInvocationHandler<E extends Throwable> - Class in com.googlecode.catchexception.throwable.internal
This abstract method invocation interceptor delegates all method calls to the 'underlying object', catches throwables of a given type, and (optionally) asserts that an throwable of a specific type is thrown.
AbstractThrowableProcessingInvocationHandler(Object, Class<E>, boolean) - Constructor for class com.googlecode.catchexception.throwable.internal.AbstractThrowableProcessingInvocationHandler
 
afterInvocation(Object) - Method in class com.googlecode.catchexception.throwable.internal.AbstractThrowableProcessingInvocationHandler
Must be called by the subclass after the method invocation that has not thrown a throwable.
afterInvocationThrowsThrowable(Throwable, Method) - Method in class com.googlecode.catchexception.throwable.internal.AbstractThrowableProcessingInvocationHandler
Must be called by the subclass after the intercepted method invocation that has thrown a throwable.
assertThrowable - Variable in class com.googlecode.catchexception.throwable.internal.AbstractThrowableProcessingInvocationHandler
See AbstractThrowableProcessingInvocationHandler.AbstractThrowableProcessingInvocationHandler(Object, Class, boolean) .

B

BDDCatchThrowable - Class in com.googlecode.catchexception.throwable.apis
Supports BDD-like approach to catch and verify throwables (given/when/then).
BDDCatchThrowable() - Constructor for class com.googlecode.catchexception.throwable.apis.BDDCatchThrowable
 
beforeInvocation() - Method in class com.googlecode.catchexception.throwable.internal.AbstractThrowableProcessingInvocationHandler
Must be called by the subclass before the intercepted method invocation.

C

call() - Method in interface com.googlecode.catchexception.throwable.ThrowingCallable
 
CatchThrowable - Class in com.googlecode.catchexception.throwable
 
CatchThrowable() - Constructor for class com.googlecode.catchexception.throwable.CatchThrowable
 
catchThrowable(T) - Static method in class com.googlecode.catchexception.throwable.CatchThrowable
Use it to catch an throwable and to get access to the thrown throwable (for further verifications).
catchThrowable(T, Class<E>) - Static method in class com.googlecode.catchexception.throwable.CatchThrowable
Use it to catch an throwable of a specific type and to get access to the thrown throwable (for further verifications).
CatchThrowableAssert - Class in com.googlecode.catchexception.throwable.apis
 
CatchThrowableAssert(Throwable) - Constructor for class com.googlecode.catchexception.throwable.apis.CatchThrowableAssert
 
CatchThrowableAssertJ - Class in com.googlecode.catchexception.throwable.apis
Deprecated. As of release 1.3.0, replaced by com.googlecode.catchexception.throwable.apis.BDDCatchThrowable()
CatchThrowableAssertJ() - Constructor for class com.googlecode.catchexception.throwable.apis.CatchThrowableAssertJ
Deprecated.  
CatchThrowableBdd - Class in com.googlecode.catchexception.throwable.apis
Deprecated. As of release 1.3.0, replaced by com.googlecode.catchexception.throwable.apis.BDDCatchThrowable()
CatchThrowableBdd() - Constructor for class com.googlecode.catchexception.throwable.apis.CatchThrowableBdd
Deprecated.  
CatchThrowableHamcrestMatchers - Class in com.googlecode.catchexception.throwable.apis
Provides some Hamcrest matchers to match some throwable properties.
CatchThrowableHamcrestMatchers() - Constructor for class com.googlecode.catchexception.throwable.apis.CatchThrowableHamcrestMatchers
 
CatchThrowableUtils - Class in com.googlecode.catchexception.throwable.apis
 
CatchThrowableUtils() - Constructor for class com.googlecode.catchexception.throwable.apis.CatchThrowableUtils
 
caughtThrowable() - Static method in class com.googlecode.catchexception.throwable.apis.BDDCatchThrowable
Returns the throwable caught during the last call on the proxied object in the current thread.
caughtThrowable() - Static method in class com.googlecode.catchexception.throwable.CatchThrowable
Returns the throwable caught during the last call on the proxied object in the current thread.
caughtThrowable - Static variable in class com.googlecode.catchexception.throwable.internal.ThrowableHolder
The container for the most recently caught throwable.
cglibHacker - Variable in class com.googlecode.catchexception.throwable.internal.ThrowableProcessingInterceptor
We use this object to change the naming policy that is used by MethodProxy.helper(io.codearte.catchexception.shade.mockito.cglib.proxy.MethodProxy.CreateInfo, java.lang.Class).
clazz - Variable in class com.googlecode.catchexception.throwable.internal.AbstractThrowableProcessingInvocationHandler
See AbstractThrowableProcessingInvocationHandler.AbstractThrowableProcessingInvocationHandler(Object, Class, boolean) .
com.googlecode.catchexception.throwable - package com.googlecode.catchexception.throwable
This public package contains the primary API to catch and verify throwables.
com.googlecode.catchexception.throwable.apis - package com.googlecode.catchexception.throwable.apis
This public package contains alternative APIs to catch and verify throwables.
com.googlecode.catchexception.throwable.apis.internal.hamcrest - package com.googlecode.catchexception.throwable.apis.internal.hamcrest
This private package provides matchers for com.googlecode.catchthrowable.apis.CatchThrowableHamcrestMatchers.
com.googlecode.catchexception.throwable.internal - package com.googlecode.catchexception.throwable.internal
This private package provides everything that is needed to implement com.googlecode.catchthrowable.CatchThrowable (the primary API).
createProxy(Class<?>, MethodInterceptor) - Method in class com.googlecode.catchexception.throwable.internal.InterfaceOnlyProxyFactory
 
createProxy(Class<?>, MethodInterceptor) - Method in interface com.googlecode.catchexception.throwable.internal.ProxyFactory
Create a proxy.
createProxy(Class<?>, MethodInterceptor) - Method in class com.googlecode.catchexception.throwable.internal.SubclassProxyFactory
 

D

DelegatingInterceptor - Class in com.googlecode.catchexception.throwable.internal
This interceptor delegates the method call to the target object.
DelegatingInterceptor(Object) - Constructor for class com.googlecode.catchexception.throwable.internal.DelegatingInterceptor
 
describeTo(Description) - Method in class com.googlecode.catchexception.throwable.apis.internal.hamcrest.ThrowableMessageMatcher
 
describeTo(Description) - Method in class com.googlecode.catchexception.throwable.apis.internal.hamcrest.ThrowableNoCauseMatcher
 

E

expectedMessageMatcher - Variable in class com.googlecode.catchexception.throwable.apis.internal.hamcrest.ThrowableMessageMatcher
The string matcher that shall match throwable message.

F

fallbackProxyFactory - Variable in class com.googlecode.catchexception.throwable.internal.SubclassProxyFactory
That proxy factory is used if this factory cannot be used.

G

get() - Static method in class com.googlecode.catchexception.throwable.internal.ThrowableHolder
 

H

hasMessage(String) - Static method in class com.googlecode.catchexception.throwable.apis.CatchThrowableHamcrestMatchers
EXAMPLE:
assertThat(caughtThrowable(), hasMessage("Index: 9, Size: 9"));
hasMessageThat(Matcher<String>) - Static method in class com.googlecode.catchexception.throwable.apis.CatchThrowableHamcrestMatchers
EXAMPLES:
assertThat(caughtThrowable(), hasMessageThat(is("Index: 9, Size: 9")));
assertThat(caughtThrowable(), hasMessageThat(containsString("Index: 9"))); // using JUnitMatchers
assertThat(caughtThrowable(), hasMessageThat(containsPattern("Index: \\d+"))); // using Mockito's Find
hasNoCause() - Static method in class com.googlecode.catchexception.throwable.apis.CatchThrowableHamcrestMatchers
EXAMPLE:
assertThat(caughtThrowable(), hasNoCause());

I

intercept(Object, Method, Object[], MethodProxy) - Method in class com.googlecode.catchexception.throwable.internal.DelegatingInterceptor
 
intercept(Object, Method, Object[], MethodProxy) - Method in class com.googlecode.catchexception.throwable.internal.ThrowableProcessingInterceptor
 
InterfaceOnlyProxy - Interface in com.googlecode.catchexception.throwable.internal
Marks a proxy as generated by InterfaceOnlyProxyFactory.
InterfaceOnlyProxyFactory - Class in com.googlecode.catchexception.throwable.internal
This ProxyFactory create proxies that implements all interfaces of the underlying object including the marker interface InterfaceOnlyProxy.
InterfaceOnlyProxyFactory() - Constructor for class com.googlecode.catchexception.throwable.internal.InterfaceOnlyProxyFactory
 
interfaces(T) - Static method in class com.googlecode.catchexception.throwable.CatchThrowable
Returns a proxy that implements all interfaces of the underlying object.
isTypeMockable(Class<?>) - Method in class com.googlecode.catchexception.throwable.internal.SubclassProxyFactory
 

M

matches(Object) - Method in class com.googlecode.catchexception.throwable.apis.internal.hamcrest.ThrowableMessageMatcher
 
matches(Object) - Method in class com.googlecode.catchexception.throwable.apis.internal.hamcrest.ThrowableNoCauseMatcher
 

P

processThrowable(T, Class<E>, boolean) - Static method in class com.googlecode.catchexception.throwable.CatchThrowable
Creates a proxy that processes throwables thrown by the underlying object.
ProxyFactory - Interface in com.googlecode.catchexception.throwable.internal
Creates proxies.

R

resetCaughtThrowable() - Static method in class com.googlecode.catchexception.throwable.CatchThrowable
Sets the caught throwable to null.

S

safeReturnValue(Class<?>) - Method in class com.googlecode.catchexception.throwable.internal.AbstractThrowableProcessingInvocationHandler
 
serialVersionUID - Static variable in error com.googlecode.catchexception.throwable.ThrowableNotThrownAssertionError
See Serializable.
set(E) - Static method in class com.googlecode.catchexception.throwable.internal.ThrowableHolder
Saves the given throwable in ThrowableHolder.caughtThrowable.
SubclassProxy - Interface in com.googlecode.catchexception.throwable.internal
Marks a proxy as generated by SubclassProxyFactory.
SubclassProxyFactory - Class in com.googlecode.catchexception.throwable.internal
This ProxyFactory uses Mockito's jmock package to create proxies that subclass from the target's class.
SubclassProxyFactory() - Constructor for class com.googlecode.catchexception.throwable.internal.SubclassProxyFactory
 

T

target - Variable in class com.googlecode.catchexception.throwable.internal.AbstractThrowableProcessingInvocationHandler
See AbstractThrowableProcessingInvocationHandler.AbstractThrowableProcessingInvocationHandler(Object, Class, boolean) .
target - Variable in class com.googlecode.catchexception.throwable.internal.DelegatingInterceptor
See DelegatingInterceptor.DelegatingInterceptor(Object).
then(Throwable) - Static method in class com.googlecode.catchexception.throwable.apis.BDDCatchThrowable
Deprecated. Use BDDAssertions#then(Throwable) instead
then(Throwable) - Static method in class com.googlecode.catchexception.throwable.apis.CatchThrowableBdd
Deprecated. Enables FEST Fluent Assertions 2.x about the caught throwable.
thenThrown(Class) - Static method in class com.googlecode.catchexception.throwable.apis.BDDCatchThrowable
Throws an assertion if no throwable is thrown or if an throwable of an unexpected type is thrown.
thenThrown(Class) - Static method in class com.googlecode.catchexception.throwable.apis.CatchThrowableBdd
Deprecated. Throws an assertion if no throwable is thrown or if an throwable of an unexpected type is thrown.
thenThrown(Class) - Static method in class com.googlecode.catchexception.throwable.apis.CatchThrowableUtils
 
ThrowableHolder - Class in com.googlecode.catchexception.throwable.internal
Holds a caught throwable per Thread.
ThrowableHolder() - Constructor for class com.googlecode.catchexception.throwable.internal.ThrowableHolder
 
ThrowableMessageMatcher<T extends Throwable> - Class in com.googlecode.catchexception.throwable.apis.internal.hamcrest
Creates a matcher that matches an throwable with a certain message.
ThrowableMessageMatcher(String) - Constructor for class com.googlecode.catchexception.throwable.apis.internal.hamcrest.ThrowableMessageMatcher
 
ThrowableMessageMatcher(Matcher<String>) - Constructor for class com.googlecode.catchexception.throwable.apis.internal.hamcrest.ThrowableMessageMatcher
 
ThrowableNoCauseMatcher<T extends Throwable> - Class in com.googlecode.catchexception.throwable.apis.internal.hamcrest
Creates a matcher that matches an throwable that has no cause.
ThrowableNoCauseMatcher() - Constructor for class com.googlecode.catchexception.throwable.apis.internal.hamcrest.ThrowableNoCauseMatcher
 
ThrowableNotThrownAssertionError - Error in com.googlecode.catchexception.throwable
Thrown if a method has not thrown an throwable of the expected type.
ThrowableNotThrownAssertionError(Class<E>) - Constructor for error com.googlecode.catchexception.throwable.ThrowableNotThrownAssertionError
Use this constructor if neither an throwable of the expected type nor another throwable is thrown.
ThrowableNotThrownAssertionError(Class<E>, Throwable) - Constructor for error com.googlecode.catchexception.throwable.ThrowableNotThrownAssertionError
Use this constructor if an throwable of another than the expected type is thrown.
ThrowableProcessingInterceptor<E extends Throwable> - Class in com.googlecode.catchexception.throwable.internal
This AbstractThrowableProcessingInvocationHandler implements MethodInterceptor for Mockito's cglib variant.
ThrowableProcessingInterceptor(Object, Class<E>, boolean) - Constructor for class com.googlecode.catchexception.throwable.internal.ThrowableProcessingInterceptor
 
ThrowingCallable - Interface in com.googlecode.catchexception.throwable
 

V

verifyThrowable(T) - Static method in class com.googlecode.catchexception.throwable.CatchThrowable
Use it to verify that an throwable is thrown and to get access to the thrown throwable (for further verifications).
verifyThrowable(T, Class<E>) - Static method in class com.googlecode.catchexception.throwable.CatchThrowable
Use it to verify that an throwable of specific type is thrown and to get access to the thrown throwable (for further verifications).

W

when(T) - Static method in class com.googlecode.catchexception.throwable.apis.BDDCatchThrowable
 
when(T) - Static method in class com.googlecode.catchexception.throwable.apis.CatchThrowableBdd
Deprecated.  

A B C D E F G H I M P R S T V W

Copyright © 2015. All rights reserved.