1 15 package org.apache.tapestry; 16 17 import org.apache.hivemind.ApplicationRuntimeException; 18 19 26 27 public class PageRedirectException extends ApplicationRuntimeException 28 { 29 private String _targetPageName; 30 31 public PageRedirectException(String targetPageName) 32 { 33 this(targetPageName, null, null, targetPageName); 34 } 35 36 public PageRedirectException(IPage page) 37 { 38 this(page.getPageName()); 39 } 40 41 public PageRedirectException( 42 String message, 43 Object component, 44 Throwable rootCause, 45 String targetPageName) 46 { 47 super(message, component, null, rootCause); 48 49 _targetPageName = targetPageName; 50 } 51 52 public String getTargetPageName() 53 { 54 return _targetPageName; 55 } 56 } | Popular Tags |