Expresso 5-5-0

com.jcorporate.expresso.services.controller
Class ErrorHandler

java.lang.Object
  extended byorg.apache.struts.action.Action
      extended bycom.jcorporate.expresso.core.controller.Controller
          extended bycom.jcorporate.expresso.core.controller.DBController
              extended bycom.jcorporate.expresso.services.controller.ErrorHandler
All Implemented Interfaces:
Serializable

Deprecated. This is not used anymore due to stability issues

public class ErrorHandler
extends DBController

This controller handles errors in whatever way is appropriate as specified in it's parameters.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class com.jcorporate.expresso.core.controller.Controller
CTL_SUCC_CTL, CTL_SUCC_STATE, CTL_SUCC_TRAN, mLog, NEWSTATE_EXCEPTION_KEY, ORIGINAL_URL_KEY, REQUEST_KEY, RESPONSE_KEY, RETURN_TO_SENDER_TRAN, STATE_ERR_CTL, STATE_ERR_STATE, STATE_ERR_TRAN, STATE_SUCC_CTL, STATE_SUCC_STATE, STATE_SUCC_TRAN
 
Fields inherited from class org.apache.struts.action.Action
ACTION_SERVLET_KEY, APPLICATION_KEY, DATA_SOURCE_KEY, defaultLocale, ERROR_KEY, EXCEPTION_KEY, FORM_BEANS_KEY, FORWARDS_KEY, LOCALE_KEY, MAPPING_KEY, MAPPINGS_KEY, MESSAGE_KEY, MESSAGES_KEY, MULTIPART_KEY, PLUG_INS_KEY, REQUEST_PROCESSOR_KEY, servlet, SERVLET_KEY, TRANSACTION_TOKEN_KEY
 
Constructor Summary
ErrorHandler()
          Deprecated. Our constructor "declares" what states we handle
 
Method Summary
protected  void genOutputErrorBodyDB(String dbErrorMessage, ControllerResponse myResponse)
          Deprecated.  
 String getTitle()
          Deprecated. Return the title of this Controller
 ControllerResponse newState(String newState, ControllerRequest params)
          Deprecated. Transition to a new state
protected  void reportError(Throwable t, ControllerResponse myResponse, ControllerRequest params)
          Deprecated. Method called for any kind of error to provide event notifications for errors.
 boolean stateAllowed(String newState, ControllerRequest params)
          Deprecated. Override the normal stateAllowed method to always allow access to this controller
 
Methods inherited from class com.jcorporate.expresso.core.controller.DBController
addTransition, getString, isAllowed
 
Methods inherited from class com.jcorporate.expresso.core.controller.Controller
addFinalState, addPromptTransitions, addRegDomainParamtoSession, addRequestedURLtoSession, addState, addStatePairing, endTimer, execute, findControllerForm, generateToken, getActionForward, getControllerChainingTransition, getControllerSecurityTransition, getFinalState, getInitialState, getLogger, getSchema, getSchemaHierarchy, getSchemaInstance, getState, getStates, getString, getString, handleException, instantiate, isFinalState, isHandleState, isPromptState, isTokenValid, loadStateForm, nextHandleState, nextPromptState, populateStateForm, postPerform, prePerform, previousPromptState, processRequestTransitions, processTransitions, redirectRequest, redirectRequest, remapFromExtension, resetToken, saveToken, setControllerChainingTransition, setControllerSecurityTransition, setCurrentState, setInitialState, setSchema, setSchema, setupDefaultValues, setupReturnToSender, setupSubclassLog, transition, transition, transition, unloadStateForm
 
Methods inherited from class org.apache.struts.action.Action
execute, generateToken, getDataSource, getDataSource, getLocale, getResources, getResources, getResources, getServlet, isCancelled, isTokenValid, isTokenValid, perform, perform, resetToken, saveErrors, saveMessages, saveToken, setLocale, setServlet, toHex
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ErrorHandler

public ErrorHandler()
Deprecated. 
Our constructor "declares" what states we handle

Method Detail

getTitle

public String getTitle()
Deprecated. 
Return the title of this Controller

Overrides:
getTitle in class Controller
Returns:
java.lang.String The Title of the controller

newState

public ControllerResponse newState(String newState,
                                   ControllerRequest params)
                            throws ControllerException,
                                   NonHandleableException
Deprecated. 
Transition to a new state

Overrides:
newState in class Controller
Parameters:
newState - The new state to transition into
params - the ControllerRequest object
Returns:
a ControllerResponse object
Throws:
ControllerException - upon error
NonHandleableException - upon fatal error

stateAllowed

public boolean stateAllowed(String newState,
                            ControllerRequest params)
                     throws ControllerException
Deprecated. 
Override the normal stateAllowed method to always allow access to this controller

Overrides:
stateAllowed in class DBController
Parameters:
newState - the state to execute
params - the ControllerRequest object
Returns:
true for this controller for all states
Throws:
ControllerException - upon error

reportError

protected void reportError(Throwable t,
                           ControllerResponse myResponse,
                           ControllerRequest params)
                    throws NonHandleableException
Deprecated. 
Method called for any kind of error to provide event notifications for errors.

Parameters:
t - the Throwable object
params - the ControllerRequest object
myResponse - the ControllerResponse object
Throws:
NonHandleableException - on fatal error

genOutputErrorBodyDB

protected void genOutputErrorBodyDB(String dbErrorMessage,
                                    ControllerResponse myResponse)
                             throws ControllerException
Deprecated. 
Throws:
ControllerException

Expresso 5-5-0

Please see www.jcorporate.com for information about new Expresso releases.