1 /* 2 * Copyright (c) 2005-2007 Creative Sphere Limited. 3 * All rights reserved. This program and the accompanying materials 4 * are made available under the terms of the Eclipse Public License v1.0 5 * which accompanies this distribution, and is available at 6 * http://www.eclipse.org/legal/epl-v10.html 7 * 8 * Contributors: 9 * 10 * Creative Sphere - initial API and implementation 11 * 12 */ 13 package org.abstracthorizon.danube.beanconsole; 14 15 /** 16 * Exception explaining what went wrong with navigating through object with the given path 17 * 18 * @author Daniel Sendula 19 */ 20 public class BeanAccessException extends RuntimeException { 21 22 /** 23 * Constructor 24 * @param path path 25 */ 26 public BeanAccessException(String path) { 27 super("Failed accessing " + path + " element."); 28 } 29 30 /** 31 * Constructor 32 * @param path path 33 * @param cause cause 34 */ 35 public BeanAccessException(String path, Exception cause) { 36 super("Failed accessing " + path + " element.", cause); 37 } 38 39 }