Package org.apache.wiki.api.exceptions
Class RedirectException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- org.apache.wiki.api.exceptions.WikiException
-
- org.apache.wiki.api.exceptions.FilterException
-
- org.apache.wiki.api.exceptions.RedirectException
-
- All Implemented Interfaces:
java.io.Serializable
public class RedirectException extends FilterException
This exception may be thrown if a filter wants to reject something and redirect the user elsewhere.- Since:
- 2.1.112
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description RedirectException(java.lang.String msg, java.lang.String redirect)
Constructs a new RedirectException.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getRedirect()
Get the URI for redirection.
-
-
-
Constructor Detail
-
RedirectException
public RedirectException(java.lang.String msg, java.lang.String redirect)
Constructs a new RedirectException.- Parameters:
msg
- The message for the exceptionredirect
- The redirect URI.
-
-
Method Detail
-
getRedirect
public java.lang.String getRedirect()
Get the URI for redirection.- Returns:
- The URI given in the constructor.
-
-