Examples of ErrorDetails


Examples of com.volantis.mcs.xml.validation.ErrorDetails


            // Validate that the element has content that is non-whitespace
            Iterator contents = element.getContent().iterator();
            if (!contents.hasNext()) {
                ErrorDetails details = new ErrorDetails(element, new XPath(element),
                        null, FaultTypes.WHITESPACE, null, null);
                errorReporter.reportError(details);
            } else {
                Text text = (Text) contents.next();
                String value = text.getText();
                if (value.length() == 0) {
                    ErrorDetails details = new ErrorDetails(element, new XPath(element),
                            null, FaultTypes.WHITESPACE, null, null);
                    errorReporter.reportError(details);
                } else {
                    // Ensure that the value is a number that is comprized only
                    // of digits and is either 6 or 8 digits in length
                    boolean valid = value.length() == 6 || value.length() == 8;
                    if (valid) {
                        for (int i = 0; i < value.length() && valid; i++) {
                            valid = Character.isDigit(value.charAt(i));
                        }
                    }

                    if (!valid) {
                        ErrorDetails details = new ErrorDetails(
                                element, new XPath(element), null, INVALID_TAC_NUMBER,
                                null, null);
                        errorReporter.reportError(details);
                    }
                }
View Full Code Here

Examples of com.volantis.mcs.xml.validation.ErrorDetails

     *                      reported
     */
    protected void report(ErrorReporter errorReporter,
                          Element element) {
        if (errorReporter != null) {
            ErrorDetails details = new ErrorDetails(element, new XPath(element),
                    null, errorKey, ancestorElementName, null);
            errorReporter.reportError(details);
        }
    }
View Full Code Here

Examples of org.apache.airavata.model.workspace.experiment.ErrorDetails

        return null;
    }

    public static ErrorDetails getErrorDetails (ErrorDetailResource resource){
        if (resource != null){
            ErrorDetails errorDetails = new ErrorDetails();
            errorDetails.setErrorID(String.valueOf(resource.getErrorId()));
            errorDetails.setCreationTime(resource.getCreationTime().getTime());
            errorDetails.setActualErrorMessage(resource.getActualErrorMsg());
            errorDetails.setUserFriendlyMessage(resource.getUserFriendlyErrorMsg());
            errorDetails.setErrorCategory(ErrorCategory.valueOf(resource.getErrorCategory()));
            errorDetails.setTransientOrPersistent(resource.isTransientPersistent());
            errorDetails.setCorrectiveAction(CorrectiveAction.valueOf(resource.getCorrectiveAction()));
            errorDetails.setActionableGroup(ActionableGroup.valueOf(resource.getActionableGroup()));
            return errorDetails;
        }
        return null;
    }
View Full Code Here

Examples of org.apache.isis.viewer.scimpi.dispatcher.debug.ErrorDetails

        addElementProcessor(new DefaultValue());
        addElementProcessor(new EditLink());
        addElementProcessor(new EditObject());
        addElementProcessor(new ElementType());
        addElementProcessor(new Errors());
        addElementProcessor(new ErrorDetails());
        addElementProcessor(new ErrorMessage());
        addElementProcessor(new ErrorReference());
        addElementProcessor(new ExcludeField());
        addElementProcessor(new Feedback());
        addElementProcessor(new FieldLabel());
View Full Code Here

Examples of org.jboss.as.console.client.shared.patching.ui.ErrorDetails

    @Override
    protected IsWidget body(final ApplyContext context) {
        FlowPanel body = new FlowPanel();
        body.add(new HTML(TEMPLATES.errorPanel(Console.CONSTANTS.patch_manager_conflict_body())));

        errorDetails = new ErrorDetails(Console.CONSTANTS.patch_manager_show_details(),
                Console.CONSTANTS.patch_manager_hide_details());
        body.add(errorDetails);

        body.add(new HTML("<h3 class=\"patch-followup-header\">" + Console.CONSTANTS
                .patch_manager_possible_actions() + "</h3>"));
View Full Code Here

Examples of org.jboss.as.console.client.shared.patching.ui.ErrorDetails

    @Override
    protected IsWidget body(final ApplyContext context) {
        FlowPanel body = new FlowPanel();
        body.add(new HTML(TEMPLATES.errorPanel(Console.CONSTANTS.patch_manager_conflict_body())));

        errorDetails = new ErrorDetails(Console.CONSTANTS.patch_manager_show_details(),
                Console.CONSTANTS.patch_manager_hide_details());
        body.add(errorDetails);

        body.add(new HTML("<h3 class=\"patch-followup-header\">" + Console.CONSTANTS
                .patch_manager_possible_actions() + "</h3>"));
View Full Code Here

Examples of org.jboss.as.console.client.shared.patching.ui.ErrorDetails

    protected IsWidget body(final C context) {
        FlowPanel body = new FlowPanel();
        errorText = new Label();
        body.add(errorText);

        errorDetails = new ErrorDetails(Console.CONSTANTS.patch_manager_show_details(),
                Console.CONSTANTS.patch_manager_hide_details());
        body.add(errorDetails);

        body.add(new HTML("<h3 class=\"patch-followup-header\">" + Console.CONSTANTS.patch_manager_possible_actions() + "</h3>"));
        HTMLPanel actions = new HTMLPanel(ACTIONS_TEMPLATE
View Full Code Here

Examples of org.jboss.as.console.client.shared.patching.ui.ErrorDetails

    @Override
    protected IsWidget body(final ApplyContext context) {
        FlowPanel body = new FlowPanel();
        body.add(new HTML(TEMPLATES.errorPanel(Console.CONSTANTS.patch_manager_conflict_body())));

        errorDetails = new ErrorDetails(Console.CONSTANTS.patch_manager_show_details(),
                Console.CONSTANTS.patch_manager_hide_details());
        body.add(errorDetails);

        body.add(new HTML("<h3 class=\"patch-followup-header\">" + Console.CONSTANTS
                .patch_manager_possible_actions() + "</h3>"));
View Full Code Here

Examples of org.jboss.as.console.client.shared.patching.ui.ErrorDetails

    @Override
    protected IsWidget body(final RollbackContext context) {
        FlowPanel body = new FlowPanel();
        body.add(new HTML(TEMPLATES.errorPanel(Console.CONSTANTS.patch_manager_rollback_error_body())));

        errorDetails = new ErrorDetails(Console.CONSTANTS.patch_manager_show_details(),
                Console.CONSTANTS.patch_manager_hide_details());
        body.add(errorDetails);

        body.add(new HTML(
                "<h3 class=\"patch-followup-header\">" + Console.CONSTANTS.patch_manager_possible_actions() + "</h3>"));
View Full Code Here

Examples of org.jboss.as.console.client.shared.patching.ui.ErrorDetails

    @Override
    protected IsWidget body(final ApplyContext context) {
        FlowPanel body = new FlowPanel();
        body.add(new HTML(TEMPLATES.errorPanel(Console.CONSTANTS.patch_manager_apply_error_body())));

        errorDetails = new ErrorDetails(Console.CONSTANTS.patch_manager_show_details(),
                Console.CONSTANTS.patch_manager_hide_details());
        body.add(errorDetails);

        body.add(new HTML(
                "<h3 class=\"patch-followup-header\">" + Console.CONSTANTS.patch_manager_possible_actions() + "</h3>"));
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.