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 008import org.apache.jena.graph.Node; 009 010/** 011 * Fedora does not accept RDF with subjects that are not local to the repository. 012 * 013 * @author whikloj 014 * @since 2015-05-29 015 */ 016public class OutOfDomainSubjectException extends ConstraintViolationException { 017 018 private static final long serialVersionUID = 1L; 019 020 /** 021 * Takes the subject that is out of domain, creates message. 022 * 023 * @param subject the subject 024 */ 025 public OutOfDomainSubjectException(final Node subject) { 026 super(String.format("RDF Stream contains subject(s) (%s) not in the domain of this repository.", subject)); 027 } 028 029}