Module life.expert

Class ApplicationUtils


  • public final class ApplicationUtils
    extends java.lang.Object
    helper methods for the main cycle of the application
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static java.lang.String FATAL_MESSAGE
      some constant
    • Method Summary

      Modifier and Type Method Description
      static void fatalError​(java.lang.Throwable throwable)
      general info: handler for unprocessed situations side effects: - print and log messages - close JVM
      • Methods inherited from class java.lang.Object

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

      • FATAL_MESSAGE

        public static final java.lang.String FATAL_MESSAGE
        some constant
        See Also:
        Constant Field Values
    • Constructor Detail

      • ApplicationUtils

        public ApplicationUtils()
    • Method Detail

      • fatalError

        public static void fatalError​(java.lang.Throwable throwable)
        general info: handler for unprocessed situations side effects: - print and log messages - close JVM
        
                   try{
                           //some code
                   } catch (TheCheckedException e) {
                   e.printStackTrace(); // Oh well, we lose.
                   fatalError();
                   }
         **
        Parameters:
        throwable - the throwable