code: private boolean isApplicationError(Throwable rootEx, String pkgRoot) {
          
          if (rootEx != null) {
              StackTraceElement[] stackTrace = rootEx.getStackTrace();
              if (stackTrace != null && stackTrace.length > 0) {
                  StackTraceElement rootThrower = stackTrace[0];
                  String className = rootThrower.getClassName();
                  if (className != null && !!!className.startsWith(pkgRoot)) {
                      return true;
                  }
              }
          }
          
          return false;
      }
docs: This method determines if the error is initiated by an application or not.
  
  @param rootEx the exception being tested
  @return true if a nice friendly app error should be returned, false otherwise.