java.io.FileNotFoundException.getStackTrace()方法的使用及代码示例

x33g5p2x  于2022-01-18 转载在 其他  
字(1.6k)|赞(0)|评价(0)|浏览(166)

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

FileNotFoundException.getStackTrace介绍

暂无

代码示例

代码示例来源:origin: pankai2014/jserver

/**
 * searching the specified configuration file and
 *      return a Properties
 *      
 * @param path
 * @return
 */
public static Properties loadConfigFile(String path)
{
  Properties property = null;
  
  File file = new File(path);
  if ( file.exists() && file.canRead() ) {
    try {
      property = new Properties();
      property.load(new FileReader(file.getAbsolutePath()));
    } 
    catch (FileNotFoundException e) {
      Logger.error(e.getStackTrace());
    } 
    catch (IOException e) {
      Logger.error(e.getStackTrace());
    }
  } 
  return property;
}

代码示例来源:origin: igniterealtime/Spark

+ src.getAbsolutePath() + "and" + dest.getAbsolutePath() + ".");
      wrapper.initCause(e);
      wrapper.setStackTrace(e.getStackTrace());
      throw wrapper;
} catch (SecurityException e) {

代码示例来源:origin: pankai2014/jserver

Logger.error(e.getStackTrace());

代码示例来源:origin: com.sap.cloud.servicesdk.prov/odata4.web

log.error("File " + fileObject.getName() + " could not be read ." + fnf.getStackTrace());
} catch (IllegalArgumentException iae){
  log.error("File " + fileObject.getName() + " could not be read ." + iae.getStackTrace());

代码示例来源:origin: com.argonio.gora/gora-hbase

} catch (FileNotFoundException ex1) {
  LOG.error(ex1.getMessage());
  LOG.error(ex1.getStackTrace().toString());

代码示例来源:origin: pankai2014/jserver

Logger.error(e.getStackTrace());

相关文章