org.jboss.seam.ui
Class UnauthorizedCommandException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by javax.faces.FacesException
                  extended by org.jboss.seam.ui.UnauthorizedCommandException
All Implemented Interfaces:
java.io.Serializable

public class UnauthorizedCommandException
extends javax.faces.FacesException

An exception is thrown when the authenticity of a JSF command (i.e., form post) that relies on a UIToken cannot be verified.

Author:
Dan Allen
See Also:
Serialized Form

Constructor Summary
UnauthorizedCommandException()
          Construct a new exception with no detail message or root cause.
UnauthorizedCommandException(java.lang.String viewId, java.lang.String message)
          Construct a new exception with a detail message and the view ID
 
Method Summary
 java.lang.String getMessage()
          Returns the detail message explaining the reason for the denial.
 java.lang.String getViewId()
          Returns the view ID to which the authorized command was directed.
 
Methods inherited from class javax.faces.FacesException
getCause
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getLocalizedMessage, 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

UnauthorizedCommandException

public UnauthorizedCommandException()

Construct a new exception with no detail message or root cause.


UnauthorizedCommandException

public UnauthorizedCommandException(java.lang.String viewId,
                                    java.lang.String message)

Construct a new exception with a detail message and the view ID

Method Detail

getViewId

public java.lang.String getViewId()

Returns the view ID to which the authorized command was directed.


getMessage

public java.lang.String getMessage()

Returns the detail message explaining the reason for the denial. Includes the view ID if specified.

Overrides:
getMessage in class java.lang.Throwable


Copyright © 2009 JBoss. All Rights Reserved.