IndexingException.java 454 Bytes
package org.legrog.entities;

import javax.ejb.ApplicationException;

/**
 * Exception when indexing fails, whatever the reason. Has to be dealt with at service level.
 */
@ApplicationException(rollback = true)
public class IndexingException extends Exception {
    final Throwable rootCause;

    IndexingException(Throwable rootCause) {
        this.rootCause = rootCause;
    }

    public Throwable getRootCause() {
        return rootCause;
    }
}