001/**
002 * Copyright 2015 DuraSpace, Inc.
003 *
004 * Licensed under the Apache License, Version 2.0 (the "License");
005 * you may not use this file except in compliance with the License.
006 * You may obtain a copy of the License at
007 *
008 *     http://www.apache.org/licenses/LICENSE-2.0
009 *
010 * Unless required by applicable law or agreed to in writing, software
011 * distributed under the License is distributed on an "AS IS" BASIS,
012 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
013 * See the License for the specific language governing permissions and
014 * limitations under the License.
015 */
016package org.fcrepo.mint;
017
018/**
019 * Runtime exception when PID minting fails.
020 *
021 * @since 2015-06-05
022 * @author escowles
023 */
024public class PidMintingException extends RuntimeException {
025
026    private static final long serialVersionUID = 1L;
027
028    /**
029     * Constructor with message.
030     * @param msg Exception message.
031    **/
032    public PidMintingException(final String msg) {
033        super(msg);
034    }
035
036    /**
037     * Constructor with cause.
038     * @param cause Original exception.
039    **/
040    public PidMintingException(final Throwable cause) {
041        super(cause);
042    }
043
044    /**
045     * Constructor with message and cause.
046     * @param msg Exception message.
047     * @param cause Original exception.
048    **/
049    public PidMintingException(final String msg, final Throwable cause) {
050        super(msg, cause);
051    }
052}