Examples of ErrorInfo


Examples of org.jdesktop.swingx.error.ErrorInfo

        JXErrorPane.showDialog(new Exception());
    }
   
    @Action
    public void generateDialogWithOwner() {
        ErrorInfo info = new ErrorInfo("title", "basic error message", null, "category",
                new Exception(), Level.ALL, null);
        JXErrorPane.showDialog(this, info);
    }
View Full Code Here

Examples of org.jdesktop.swingx.error.ErrorInfo

    }

    @Action
    public void generateNestedExceptions() {
        Exception ex = new Exception("I'm a secondary exception", new Exception("I'm the cause"));
        ErrorInfo info = new ErrorInfo("Title", "basic error message", null, "category", ex,
                Level.ALL, null);
        JXErrorPane.showDialog(this, info);
    }
View Full Code Here

Examples of org.jdesktop.swingx.error.ErrorInfo

            if (shortMessage == null || "".equals(shortMessage))
            {
                shortMessage = RcpSupport.getMessage(null, RcpSupport.ERROR_KEY, RcpSupport.MESSAGE);
            }
        }
        showErrorDialog(null, new ErrorInfo(title, shortMessage, getDetailsAsHTML(title, Level.SEVERE, t),
                null, t, Level.SEVERE, null));
    }
View Full Code Here

Examples of org.jdesktop.swingx.error.ErrorInfo

            if (shortMessage == null || "".equals(shortMessage))
            {
                shortMessage = RcpSupport.getMessage(null, RcpSupport.ERROR_KEY, RcpSupport.MESSAGE);
            }
        }
        showErrorDialog(null, new ErrorInfo(title, shortMessage, getDetailsAsHTML(title, Level.SEVERE,
                sqlException), null, sqlException, Level.SEVERE, null));
    }
View Full Code Here

Examples of org.jdesktop.swingx.error.ErrorInfo

    public static void showErrorDialog(String id, Throwable cause)
    {
        String title = RcpSupport.getMessage(id, RcpSupport.ERROR_KEY, RcpSupport.TITLE);
        String message = RcpSupport.getMessage(id, RcpSupport.ERROR_KEY, RcpSupport.MESSAGE);
        showErrorDialog(null, new ErrorInfo(title, message, getDetailsAsHTML(title, Level.SEVERE, cause),
                null, cause, Level.SEVERE, null));
    }
View Full Code Here

Examples of org.jdesktop.swingx.error.ErrorInfo

                null, cause, Level.SEVERE, null));
    }

    public static void showErrorDialog(String title, String message, String detail)
    {
        showErrorDialog(null, new ErrorInfo(title, message, detail, null, null, Level.SEVERE, null));
    }
View Full Code Here

Examples of org.jdesktop.swingx.error.ErrorInfo

        detailedMessage=builder.toString();
      }else {
        detailedMessage=e.getDetailedMessage(false);
      }
      errorPane.setFont(new Font(Font.SANS_SERIF,Font.PLAIN,13));
      errorPane.setErrorInfo(new ErrorInfo(e.getErrorType().toString(), e.getDetailedMessage(true),
          detailedMessage, null, e, e.getErrorType().getJavaLoggingLevel(), null));
      errorPane.setPreferredSize(new Dimension(CommonUI.getFractionedWidth(35), CommonUI.getFractionedHeight(22)));
      JXErrorPane.showFrame(null, errorPane);
    }
View Full Code Here

Examples of org.jdesktop.swingx.error.ErrorInfo

      SwingUtilities.invokeLater(new Runnable() {
        @Override
        public void run() {
          setPopupEnabled(false);

          final ErrorInfo info = new ErrorInfo(
              getModel().getName() + " - " + localizer.getValue(RES_EXCEPTION), localizer.getValue(RES_EXCEPTION_UNCAUGHT), null, null, ex, Level.SEVERE, null); //$NON-NLS-1$
          JXErrorPane.showDialog(getView().getOwner(), info);

          setPopupEnabled(true);
View Full Code Here

Examples of org.jdesktop.swingx.error.ErrorInfo

    @Override
    public void executedActionFailed(Action action, SalsaException exception) {
        if (showError) {
            JXErrorPane.showDialog(this,
                    new ErrorInfo("Execution error", "Failed to execute " + action, exception.getMessage(), "SalsaAPI",
                            exception, Level.WARNING, null));
        }
    }
View Full Code Here

Examples of org.jdesktop.swingx.error.ErrorInfo

    }

    @Override
    public void executedActionFailed(Action action, SalsaException exception) {
        JXErrorPane.showDialog(this,
                new ErrorInfo("Execution error", "Failed to execute " + action, exception.getMessage(), "SalsaAPI",
                        exception, Level.WARNING, null));

    }
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.