001/* 002 * Copyright (c) 2006-2015 Nuxeo SA (http://nuxeo.com/) and others. 003 * 004 * All rights reserved. This program and the accompanying materials 005 * are made available under the terms of the Eclipse Public License v1.0 006 * which accompanies this distribution, and is available at 007 * http://www.eclipse.org/legal/epl-v10.html 008 * 009 * Contributors: 010 * Bogdan Stefanescu 011 * Florent Guillaume 012 */ 013package org.nuxeo.ecm.core.api.model; 014 015import org.nuxeo.ecm.core.api.PropertyException; 016 017/** 018 * Exception indicating a property not found. 019 */ 020public class PropertyNotFoundException extends PropertyException { 021 022 private static final long serialVersionUID = 1L; 023 024 protected final String detail; 025 026 public PropertyNotFoundException(String path) { 027 super(path); 028 detail = null; 029 } 030 031 public PropertyNotFoundException(String path, String detail) { 032 super(path); 033 addInfo(detail); 034 this.detail = detail; 035 } 036 037 public String getPath() { 038 return getOriginalMessage(); 039 } 040 041 public String getDetail() { 042 return detail; 043 } 044 045}