org.geotools.util.logging.Logging.recoverableException()方法的使用及代码示例

x33g5p2x  于2022-01-23 转载在 其他  
字(3.4k)|赞(0)|评价(0)|浏览(173)

本文整理了Java中org.geotools.util.logging.Logging.recoverableException()方法的一些代码示例,展示了Logging.recoverableException()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Logging.recoverableException()方法的具体详情如下:
包路径:org.geotools.util.logging.Logging
类名称:Logging
方法名:recoverableException

Logging.recoverableException介绍

[英]Invoked when a recoverable error occurs. This method is similar to #unexpectedException(Class,String,Throwable) except that it doesn't log the stack trace and uses a lower logging level.
[中]发生可恢复错误时调用。此方法类似于#unexpectedException(类、字符串、Throwable),只是它不记录堆栈跟踪,并且使用较低的日志记录级别。

代码示例

代码示例来源:origin: geotools/geotools

/**
   * Invoked when an error occurred but the application can fallback on a reasonable default.
   *
   * @param method The method where the error occurred.
   * @param exception The error.
   */
  private static void recoverableException(final String method, final Exception exception) {
    Logging.recoverableException(Resample.class, method, exception);
  }
}

代码示例来源:origin: geotools/geotools

/**
   * Invoked when a recoverable error occurs. This method is similar to {@link
   * #unexpectedException(Class,String,Throwable) unexpectedException} except that it doesn't log
   * the stack trace and uses a lower logging level.
   *
   * @param classe The class where the error occurred.
   * @param method The method name where the error occurred.
   * @param error The error.
   * @return {@code true} if the error has been logged, or {@code false} if the logger doesn't log
   *     anything at the specified level.
   * @since 2.5
   */
  public static boolean recoverableException(
      final Class<?> classe, final String method, final Throwable error) {
    return recoverableException(null, classe, method, error);
  }
}

代码示例来源:origin: org.geotools/gt-coverage

/**
   * Invoked when an error occurred but the application can fallback on a reasonable default.
   *
   * @param method The method where the error occurred.
   * @param exception The error.
   */
  private static void recoverableException(final String method, final Exception exception) {
    Logging.recoverableException(Resample.class, method, exception);
  }
}

代码示例来源:origin: geotools/geotools

Logging.recoverableException(LOGGER, FactoryCreator.class, "getFactory", exception);
  continue;
} catch (FactoryRegistryException exception) {

代码示例来源:origin: org.geotools/gt-metadata

/**
   * Invoked when a recoverable error occurs. This method is similar to
   * {@link #unexpectedException(Class,String,Throwable) unexpectedException}
   * except that it doesn't log the stack trace and uses a lower logging level.
   *
   * @param classe  The class where the error occurred.
   * @param method  The method name where the error occurred.
   * @param error   The error.
   * @return {@code true} if the error has been logged, or {@code false} if the logger
   *         doesn't log anything at the specified level.
   *
   * @since 2.5
   */
  public static boolean recoverableException(final Class<?> classe, final String method,
                        final Throwable error)
  {
    return recoverableException(null, classe, method, error);
  }
}

代码示例来源:origin: geotools/geotools

.createEllipsoidalCS(properties, axis0, axis1);
} catch (FactoryException e) {
  Logging.recoverableException(CRS.class, "getHorizontalCRS", e);
  horizontalCS = new DefaultEllipsoidalCS(properties, axis0, axis1);
          .createGeographicCRS(properties, datum, horizontalCS);
} catch (FactoryException e) {
  Logging.recoverableException(CRS.class, "getHorizontalCRS", e);
  horizontalCRS = new DefaultGeographicCRS(properties, datum, horizontalCS);

代码示例来源:origin: org.geotools/gt-metadata

Logging.recoverableException(LOGGER, FactoryCreator.class, "getServiceProvider", exception);
  continue;
} catch (FactoryRegistryException exception) {

代码示例来源:origin: org.geotools/gt-coverage

Logging.recoverableException(GridCoverage2D.class, "view", exception);

相关文章