Skip navigation links


com.bea.netuix.application.exception
Class RedirectionException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by com.bea.netuix.application.exception.NetuixException
              extended by com.bea.netuix.application.exception.RedirectionException

All Implemented Interfaces
Serializable
Direct Known Subclasses:
CommunityAccessRedirectionException

public class RedirectionException
extends NetuixException

This exception is thrown when the framework needs to affect a redirection, such as when the user does not have permission to view the current tree.

See Also
Serialized Form

Constructor Summary
RedirectionException(String redirectUri)
          Constructs a basic RedirectionException with no detail message.
RedirectionException(String s, String redirectUri)
          Constructs a RedirectionException with the specified detail message.
RedirectionException(String s, Throwable cause, String redirectUri)
          Constructs a RedirectionException with the specified detail message and causal exception.
RedirectionException(Throwable cause, String redirectUri)
          Constructs a RedirectionException with the specified causal exception.

 

Method Summary
 String getRedirectUri()
          Retrieves the URI this exception should cause a redirection to, if specified.
 void setRedirectUri(String redirectUri)
          Sets the URI this exception should cause a redirection to.

 

Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString

 

Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

 

Constructor Detail

RedirectionException

public RedirectionException(String redirectUri)
Constructs a basic RedirectionException with no detail message.
Parameters
redirectUri - the URI to redirect to. This can be null if the framework should take a default redirection action.

RedirectionException

public RedirectionException(String s,
                            String redirectUri)
Constructs a RedirectionException with the specified detail message.
Parameters
s - The detail message
redirectUri - the URI to redirect to. This can be null if the framework should take a default redirection action.

RedirectionException

public RedirectionException(String s,
                            Throwable cause,
                            String redirectUri)
Constructs a RedirectionException with the specified detail message and causal exception.
Parameters
s - The detail message
cause - The exception that caused this exception to be thrown
redirectUri - the URI to redirect to. This can be null if the framework should take a default redirection action.

RedirectionException

public RedirectionException(Throwable cause,
                            String redirectUri)
Constructs a RedirectionException with the specified causal exception.
Parameters
cause - The exception that caused this exception to be thrown
redirectUri - the URI to redirect to. This can be null if the framework should take a default redirection action.

Method Detail

getRedirectUri

public String getRedirectUri()
Retrieves the URI this exception should cause a redirection to, if specified.
Returns
The URI to redirect to, or null if the framework should take a default redirection action.

setRedirectUri

public void setRedirectUri(String redirectUri)
Sets the URI this exception should cause a redirection to.
Parameters
redirectUri - The URI to redirect to, or null if the framework should take a default redirection action.

Skip navigation links


Copyright © 2010, Oracle. All rights reserved.