SearchingException.java 377 Bytes
package org.legrog.entities;

/**
 * Exception when searching fails, whatever the reason. Has to be dealt with at service level.
 */
public class SearchingException extends Exception {
    final Throwable rootCause;

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

    public Throwable getRootCause() {
        return rootCause;
    }
}