Search in sources :

Example 31 with MandatoryFieldException

use of org.jaffa.datatypes.exceptions.MandatoryFieldException in project jaffa-framework by jaffa-projects.

the class QueueViewerComponent method display.

/**
 * This retrieves the details for the QueueHeader.
 * @throws ApplicationExceptions This will be thrown in case any invalid data has been set, or if no data has been set.
 * @throws FrameworkException Indicates some system error.
 * @return The FormKey for the View screen.
 */
public FormKey display() throws ApplicationExceptions, FrameworkException {
    ApplicationExceptions appExps = null;
    if (getQueue() == null) {
        if (appExps == null)
            appExps = new ApplicationExceptions();
        appExps.add(new MandatoryFieldException("[label.Jaffa.Messaging.QueueViewer.Queue]"));
    }
    if (appExps != null && appExps.size() > 0)
        throw appExps;
    doInquiry();
    return getViewerFormKey();
}
Also used : ApplicationExceptions(org.jaffa.exceptions.ApplicationExceptions) MandatoryFieldException(org.jaffa.datatypes.exceptions.MandatoryFieldException)

Aggregations

MandatoryFieldException (org.jaffa.datatypes.exceptions.MandatoryFieldException)31 ApplicationExceptions (org.jaffa.exceptions.ApplicationExceptions)22 InvocationTargetException (java.lang.reflect.InvocationTargetException)2 ActionMessage (org.apache.struts.action.ActionMessage)2 FormSelectionException (org.jaffa.modules.printing.components.formselectionmaintenance.FormSelectionException)2 Iterator (java.util.Iterator)1 IAttachmentData (org.jaffa.components.attachment.apis.IAttachmentData)1 IVoucherGenerator (org.jaffa.components.voucher.IVoucherGenerator)1 org.jaffa.datatypes (org.jaffa.datatypes)1 ApplicationException (org.jaffa.exceptions.ApplicationException)1 FrameworkException (org.jaffa.exceptions.FrameworkException)1 FieldMetaData (org.jaffa.metadata.FieldMetaData)1 FormSelectionMaintenanceInDto (org.jaffa.modules.printing.components.formselectionmaintenance.dto.FormSelectionMaintenanceInDto)1 FormSelectionMaintenanceOutDto (org.jaffa.modules.printing.components.formselectionmaintenance.dto.FormSelectionMaintenanceOutDto)1 FormSelectionMaintenanceOutRowDto (org.jaffa.modules.printing.components.formselectionmaintenance.dto.FormSelectionMaintenanceOutRowDto)1 DomainObjectValidationException (org.jaffa.persistence.exceptions.DomainObjectValidationException)1 CheckBoxModel (org.jaffa.presentation.portlet.widgets.model.CheckBoxModel)1 EditBoxModel (org.jaffa.presentation.portlet.widgets.model.EditBoxModel)1 GridModel (org.jaffa.presentation.portlet.widgets.model.GridModel)1 GridModelRow (org.jaffa.presentation.portlet.widgets.model.GridModelRow)1