
com.oneandone.ejbcdiunit.persistence.TestTransactionException Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of ejb-cdi-unit Show documentation
Show all versions of ejb-cdi-unit Show documentation
A module that can be used together with cdiunit to build en ejb-test-environment.
The newest version!
package com.oneandone.ejbcdiunit.persistence;
/**
* A Runtime used to encapsulate exceptions that occur during TestTransactions.
* This way the Closure can be defined in a unique way and does not have to handle checked exceptions inside.
* On the other side the Testcode can react on these exceptions by catching this type.
*
* @author aschoerk
*/
public class TestTransactionException extends RuntimeException {
private static final long serialVersionUID = 7661640564009975747L;
/**
* Constructs a new runtime exception with the specified cause and a
* detail message of (cause==null ? null : cause.toString())
* (which typically contains the class and detail message of
* cause). This constructor is useful for runtime exceptions
* that are little more than wrappers for other throwables.
*
* @param cause the cause (which is saved for later retrieval by the
* {@link #getCause()} method). (A null value is
* permitted, and indicates that the cause is nonexistent or
* unknown.)
* @since 1.4
*/
public TestTransactionException(Throwable cause) {
super(cause);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy