All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.broadinstitute.hellbender.utils.bwa.CouldNotCreateIndexImageException Maven / Gradle / Ivy

package org.broadinstitute.hellbender.utils.bwa;

/**
 * Created by valentin on 7/30/17.
 */
public class CouldNotCreateIndexImageException extends RuntimeException {

    private final String image;

    public CouldNotCreateIndexImageException(final String image, final String message) {
        super(composeMessage(image, message));
        this.image = image;
    }

    public CouldNotCreateIndexImageException(final String image, final String message, final Throwable cause) {
        super(composeMessage(image, message), cause);
        this.image = image;
    }

    private static String composeMessage(final String image, final String message) {
        return String.format("could not create index image '%s'" + ((message == null) ? "" : ": " + message), image);
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy