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 * This exception is used for invalid resource identifiers, such as when a resource path has empty segments. 010 * Note: This exception is *not* used for valid identifiers that point to non-existent resources. 011 * 012 * @author awoods 013 * @since July 14, 2015 014 */ 015public class InvalidResourceIdentifierException extends RepositoryRuntimeException { 016 017 private static final long serialVersionUID = 1L; 018 019 /** 020 * Constructor 021 * 022 * @param msg root cause 023 */ 024 public InvalidResourceIdentifierException(final String msg) { 025 super(msg); 026 } 027 028 /** 029 * Constructor 030 * 031 * @param msg root cause 032 * @param e root cause exception 033 */ 034 public InvalidResourceIdentifierException(final String msg, final Exception e) { 035 super(msg,e); 036 } 037}