001/*
002 * The contents of this file are subject to the license and copyright
003 * detailed in the LICENSE and NOTICE files at the root of the source
004 * tree.
005 */
006package org.fcrepo.kernel.api.exception;
007
008/**
009 * Thrown in circumstances where a client has used an unknown or unsupported hash algorithm
010 * in a request, e.g. with `Digest` or `Want-Digest`.
011 *
012 * @author harring
013 * @since 2017-09-12
014 */
015public class UnsupportedAlgorithmException extends RepositoryRuntimeException {
016
017    private static final long serialVersionUID = 1L;
018
019    /**
020     * Exception with message
021     * @param message the message
022     */
023    public UnsupportedAlgorithmException(final String message) {
024        super(message);
025    }
026
027    /**
028     * Ordinary constructor.
029     *
030     * @param message the message
031     * @param rootCause the root cause
032     */
033    public UnsupportedAlgorithmException(final String message, final Throwable rootCause) {
034        super(message, rootCause);
035    }
036}