Tabnine Logo
ScriptException.setStackTrace
Code IndexAdd Tabnine to your IDE (free)

How to use
setStackTrace
method
in
org.crsh.command.ScriptException

Best Java code snippets using org.crsh.command.ScriptException.setStackTrace (Showing top 4 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
List l =
  • Codota Iconnew ArrayList()
  • Codota Iconnew LinkedList()
  • Smart code suggestions by Tabnine
}
origin: crashub/crash

public static ScriptException unwrap(groovy.util.ScriptException cause) {
 // Special handling for groovy.util.ScriptException
 // which may be thrown by scripts because it is imported by default
 // by groovy imports
 String msg = cause.getMessage();
 ScriptException translated;
 if (msg != null) {
  translated = new ScriptException(msg);
 } else {
  translated = new ScriptException();
 }
 translated.setStackTrace(cause.getStackTrace());
 return translated;
}
origin: org.crsh/crsh.shell.core

static ScriptException toScript(Throwable cause) {
 if (cause instanceof ScriptException) {
  return (ScriptException)cause;
 } if (cause instanceof groovy.util.ScriptException) {
  // Special handling for groovy.util.ScriptException
  // which may be thrown by scripts because it is imported by default
  // by groovy imports
  String msg = cause.getMessage();
  ScriptException translated;
  if (msg != null) {
   translated = new ScriptException(msg);
  } else {
   translated = new ScriptException();
  }
  translated.setStackTrace(cause.getStackTrace());
  return translated;
 } else {
  return new ScriptException(cause);
 }
}
origin: org.crashub/crash.shell

public static ScriptException unwrap(groovy.util.ScriptException cause) {
 // Special handling for groovy.util.ScriptException
 // which may be thrown by scripts because it is imported by default
 // by groovy imports
 String msg = cause.getMessage();
 ScriptException translated;
 if (msg != null) {
  translated = new ScriptException(msg);
 } else {
  translated = new ScriptException();
 }
 translated.setStackTrace(cause.getStackTrace());
 return translated;
}
origin: com.github.corda.crash/crash.shell

public static ScriptException unwrap(groovy.util.ScriptException cause) {
 // Special handling for groovy.util.ScriptException
 // which may be thrown by scripts because it is imported by default
 // by groovy imports
 String msg = cause.getMessage();
 ScriptException translated;
 if (msg != null) {
  translated = new ScriptException(msg);
 } else {
  translated = new ScriptException();
 }
 translated.setStackTrace(cause.getStackTrace());
 return translated;
}
org.crsh.commandScriptExceptionsetStackTrace

Popular methods of ScriptException

  • <init>
  • getCause
  • getMessage

Popular in Java

  • Finding current android device location
  • scheduleAtFixedRate (ScheduledExecutorService)
  • putExtra (Intent)
  • notifyDataSetChanged (ArrayAdapter)
  • Color (java.awt)
    The Color class is used to encapsulate colors in the default sRGB color space or colors in arbitrary
  • File (java.io)
    An "abstract" representation of a file system entity identified by a pathname. The pathname may be a
  • PriorityQueue (java.util)
    A PriorityQueue holds elements on a priority heap, which orders the elements according to their natu
  • ServletException (javax.servlet)
    Defines a general exception a servlet can throw when it encounters difficulty.
  • IOUtils (org.apache.commons.io)
    General IO stream manipulation utilities. This class provides static utility methods for input/outpu
  • Table (org.hibernate.mapping)
    A relational table
  • Top 17 PhpStorm Plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

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