com.addc.server.commons.struts12.actions.ErrorActionForm Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of addc-svr-struts12 Show documentation
Show all versions of addc-svr-struts12 Show documentation
Classes to support web apps written for struts 1.2.
package com.addc.server.commons.struts12.actions;
import org.apache.struts.action.ActionForm;
/**
* The ErrorActionForm supplies data for error jsp pages
*/
public class ErrorActionForm extends ActionForm {
private static final long serialVersionUID= -4963703042260448597L;
private String errorCode;
private String exception;
/**
* Get the errorCode
* @return the errorCode
*/
public String getErrorCode() {
if (errorCode == null) {
return "N/A";
}
return errorCode;
}
/**
* Set the errorCode value
* @param errorCode the errorCode to set
*/
public void setErrorCode(String errorCode) {
this.errorCode = errorCode;
}
/**
* Get the exception
* @return the exception
*/
public String getException() {
return exception;
}
/**
* Set the exception value
* @param exception the exception to set
*/
public void setException(String exception) {
this.exception= exception;
}
@Override
public String toString() {
StringBuilder builder= new StringBuilder();
builder.append("ErrorActionForm [errorCode=");
builder.append(errorCode);
builder.append(", exception=");
builder.append(exception);
builder.append(']');
return builder.toString();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy