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.kernel.exception;
017
018import javax.jcr.RepositoryException;
019
020/**
021 * Indicates that RDF was presented for persistence to the repository,
022 * but could not be persisted for some reportable reason.
023 *
024 * @author ajs6f
025 * @since Oct 24, 2013
026 */
027public class MalformedRdfException extends RepositoryException {
028
029    private static final long serialVersionUID = 1L;
030
031    /**
032     * Ordinary constructor.
033     *
034     * @param msg the message
035     */
036    public MalformedRdfException(final String msg) {
037        super(msg);
038    }
039
040
041    /**
042     * Ordinary constructor.
043     *
044     * @param msg the message
045     * @param rootCause the root cause
046     */
047    public MalformedRdfException(final String msg, final Throwable rootCause) {
048        super(msg, rootCause);
049    }
050
051}