1 24 package org.riotfamily.pages.dao; 25 26 import org.riotfamily.pages.Page; 27 import org.riotfamily.riot.dao.InvalidPropertyValueException; 28 29 33 public class DuplicatePathComponentException extends InvalidPropertyValueException { 34 35 Page page; 36 37 public DuplicatePathComponentException(String errorCode, Page page) { 38 super("pathComponent", "duplicate", new String [] {page.getPathComponent()}, 39 "There's already another page using the pathComponent."); 40 this.page = page; 41 } 42 43 44 public DuplicatePathComponentException(String errorCode, String value) { 45 super("pathComponent", "duplicate", new String [] {value}, 46 "There's already another page using the pathComponent."); 47 } 48 49 public Page getPage() { 50 return this.page; 51 } 52 53 } 54 | Popular Tags |