Class ErrorNotifier


  • public final class ErrorNotifier
    extends java.lang.Object
    Opens user-friendly dialog with error.
    Author:
    Petr Hamernik
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      static interface  ErrorNotifier.Notifier  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static java.lang.String getRootCause​(java.lang.Throwable exc)
      Get the message of the root cause exception.
      static void notifyUser​(java.lang.Throwable exc, java.lang.String taskName)
      Open an error dialog with user friendly message and possibility to see details (and in the future also sending error report).
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • notifyUser

        public static void notifyUser​(java.lang.Throwable exc,
                                      java.lang.String taskName)
        Open an error dialog with user friendly message and possibility to see details (and in the future also sending error report).
        Parameters:
        exc - Exception to be reported
        taskName - Name of task. It should be in format like "loading form" (first char lower case) because the complete user message is something like "Error while {0}."
      • getRootCause

        public static java.lang.String getRootCause​(java.lang.Throwable exc)
        Get the message of the root cause exception.