org.alfresco.web.bean
Class ErrorBean

java.lang.Object
  extended by org.alfresco.web.bean.ErrorBean
All Implemented Interfaces:
java.io.Serializable

public class ErrorBean
extends java.lang.Object
implements java.io.Serializable

Bean used by the error page, holds the last exception to be thrown by the system

See Also:
Serialized Form

Field Summary
static java.lang.String ERROR_BEAN_NAME
           
 
Constructor Summary
ErrorBean()
           
 
Method Summary
 java.lang.String getErrorMessageKey()
          Gets the error message key.
 java.lang.Throwable getLastError()
           
 java.lang.String getReturnPage()
           
 void setErrorMessageKey(java.lang.String errorMessageKey)
          Sets the error message key.
 void setLastError(java.lang.Throwable error)
           
 void setReturnPage(java.lang.String returnPage)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ERROR_BEAN_NAME

public static final java.lang.String ERROR_BEAN_NAME
See Also:
Constant Field Values
Constructor Detail

ErrorBean

public ErrorBean()
Method Detail

getReturnPage

public java.lang.String getReturnPage()
Returns:
Returns the page to go back to after the error has been displayed

setReturnPage

public void setReturnPage(java.lang.String returnPage)
Parameters:
returnPage - The page to return to after showing the error

getLastError

public java.lang.Throwable getLastError()
Returns:
Returns the lastError.

setLastError

public void setLastError(java.lang.Throwable error)
Parameters:
error - The lastError to set.

getErrorMessageKey

public java.lang.String getErrorMessageKey()
Gets the error message key.

Returns:
the error message key

setErrorMessageKey

public void setErrorMessageKey(java.lang.String errorMessageKey)
Sets the error message key.

Parameters:
errorMessageKey - the new error message key


Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.