Tabnine Logo
StopExecutionException.initCause
Code IndexAdd Tabnine to your IDE (free)

How to use
initCause
method
in
org.gradle.api.tasks.StopExecutionException

Best Java code snippets using org.gradle.api.tasks.StopExecutionException.initCause (Showing top 1 results out of 315)

origin: gradle.plugin.com.github.nomensvyat/SwitchBoxPlugin

private FieldMap loadInternal(File file) {
  checkFile(file);
  try {
    byte[] readAllBytes = Files.readAllBytes(Paths.get(file.getAbsolutePath()));
    String jsonString = new String(readAllBytes);
    cachedFieldMap = gson.fromJson(jsonMinify.minify(jsonString), FieldMap.class);
  } catch (FileNotFoundException e) {
    throw new IllegalStateException("File not found", e);
  } catch (IOException e) {
    throw new IllegalStateException("Can't read file", e);
  } catch (JsonParseException e) {
    StopExecutionException stopExecutionException = new StopExecutionException(
        "Can't parse fields from file: " + file.getAbsolutePath());
    stopExecutionException.initCause(e);
    throw stopExecutionException;
  }
  cacheTimestamp = file.lastModified();
  return cachedFieldMap;
}
org.gradle.api.tasksStopExecutionExceptioninitCause

Popular methods of StopExecutionException

  • <init>
  • getMessage

Popular in Java

  • Making http post requests using okhttp
  • setRequestProperty (URLConnection)
  • startActivity (Activity)
  • notifyDataSetChanged (ArrayAdapter)
  • Table (com.google.common.collect)
    A collection that associates an ordered pair of keys, called a row key and a column key, with a sing
  • BigInteger (java.math)
    An immutable arbitrary-precision signed integer.FAST CRYPTOGRAPHY This implementation is efficient f
  • Date (java.sql)
    A class which can consume and produce dates in SQL Date format. Dates are represented in SQL as yyyy
  • Stream (java.util.stream)
    A sequence of elements supporting sequential and parallel aggregate operations. The following exampl
  • JButton (javax.swing)
  • Loader (org.hibernate.loader)
    Abstract superclass of object loading (and querying) strategies. This class implements useful common
  • Top 12 Jupyter Notebook extensions
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