Tabnine Logo
NestedIOException.getIOException
Code IndexAdd Tabnine to your IDE (free)

How to use
getIOException
method
in
leap.lang.exception.NestedIOException

Best Java code snippets using leap.lang.exception.NestedIOException.getIOException (Showing top 3 results out of 315)

origin: org.leapframework/jmms-engine

private File getDir(Resource resource) {
  File file = null;
  try {
    file = resource.getFile();
  } catch (NestedIOException e) {
    if (!(e.getIOException() instanceof FileNotFoundException)) {
      throw e;
    }
  }
  return file;
}
origin: org.leapframework/leap-spring-boot

@Override
public File getFile() throws IOException {
  try{
    File file = wrapped.getFile();
    if(null == file) {
      throw new FileNotFoundException("Resource '" + getDescription() + "' is not a file");
    }
    return file;
  }catch (NestedIOException e) {
    throw e.getIOException();
  }
}
origin: org.leapframework/jmms-engine

private void addWatchDir(List<File> dirs, Resource resource) {
  if(null == resource || !resource.exists()) {
    return;
  }
  File file = null;
  try {
    file = resource.getFile();
  } catch (NestedIOException e) {
    if (!(e.getIOException() instanceof FileNotFoundException)) {
      throw e;
    }
  }
  if(null != file && file.isDirectory()) {
    dirs.add(file);
  }
}
leap.lang.exceptionNestedIOExceptiongetIOException

Popular methods of NestedIOException

  • <init>
  • getCause

Popular in Java

  • Start an intent from android
  • getSystemService (Context)
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • getSharedPreferences (Context)
  • SocketTimeoutException (java.net)
    This exception is thrown when a timeout expired on a socket read or accept operation.
  • Timer (java.util)
    Timers schedule one-shot or recurring TimerTask for execution. Prefer java.util.concurrent.Scheduled
  • Executors (java.util.concurrent)
    Factory and utility methods for Executor, ExecutorService, ScheduledExecutorService, ThreadFactory,
  • JList (javax.swing)
  • JPanel (javax.swing)
  • Response (javax.ws.rs.core)
    Defines the contract between a returned instance and the runtime when an application needs to provid
  • CodeWhisperer alternatives
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now