Jive Forums API (5.5.20.2-oracle) Developer Javadocs

com.jivesoftware.base.action
Class ErrorAction

java.lang.Object
  extended by com.jivesoftware.base.action.ErrorAction
All Implemented Interfaces:
com.opensymphony.xwork.Action

public class ErrorAction
extends java.lang.Object
implements com.opensymphony.xwork.Action

A simple action to handle errors in the system. You can redirect to this action with the 'type' parameter set then show a nice clean error page as the view.


Field Summary
 
Fields inherited from interface com.opensymphony.xwork.Action
ERROR, INPUT, LOGIN, NONE, SUCCESS
 
Constructor Summary
ErrorAction()
           
 
Method Summary
 java.lang.String execute()
          Returns Action.SUCCESS always.
 java.lang.String getType()
          Returns the type, or classname, of the exception.
 void setType(java.lang.String type)
          Sets the classname of the exception.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ErrorAction

public ErrorAction()
Method Detail

getType

public java.lang.String getType()
Returns the type, or classname, of the exception.

Returns:
the classname of the exception.

setType

public void setType(java.lang.String type)
Sets the classname of the exception.

Parameters:
type - the classname of the exception.

execute

public java.lang.String execute()
                         throws java.lang.Exception
Returns Action.SUCCESS always.

Specified by:
execute in interface com.opensymphony.xwork.Action
Returns:
Action.SUCCESS always.
Throws:
java.lang.Exception

Jive Forums Project Page

Copyright © 1999-2006 Jive Software.