All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.addc.server.commons.struts12.actions.ErrorActionForm Maven / Gradle / Ivy

There is a newer version: 2.6.1
Show newest version
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