Groovy Documentation

org.codehaus.groovy.grails.cli
[Java] Class ScriptExitException

java.lang.Object
  java.lang.Throwable
      java.lang.Exception
          java.lang.RuntimeException
              org.codehaus.groovy.grails.cli.ScriptExitException

public class ScriptExitException
extends java.lang.RuntimeException

Exception thrown when a script exits, but Grails has disabled the system exit. Used for testing and Grails interactive mode.


Constructor Summary
ScriptExitException(int exitCode)

ScriptExitException(int exitCode, java.lang.String message, java.lang.Throwable cause)

ScriptExitException(int exitCode, java.lang.String message)

ScriptExitException(int exitCode, java.lang.Throwable cause)

 
Method Summary
int getExitCode()

 
Methods inherited from class java.lang.RuntimeException
java.lang.RuntimeException#printStackTrace(java.io.PrintStream), java.lang.RuntimeException#printStackTrace(), java.lang.RuntimeException#printStackTrace(java.io.PrintWriter), java.lang.RuntimeException#fillInStackTrace(), java.lang.RuntimeException#getCause(), java.lang.RuntimeException#initCause(java.lang.Throwable), java.lang.RuntimeException#toString(), java.lang.RuntimeException#getMessage(), java.lang.RuntimeException#getLocalizedMessage(), java.lang.RuntimeException#getStackTrace(), java.lang.RuntimeException#setStackTrace([Ljava.lang.StackTraceElement;), java.lang.RuntimeException#wait(), java.lang.RuntimeException#wait(long), java.lang.RuntimeException#wait(long, int), java.lang.RuntimeException#equals(java.lang.Object), java.lang.RuntimeException#hashCode(), java.lang.RuntimeException#getClass(), java.lang.RuntimeException#notify(), java.lang.RuntimeException#notifyAll()
 
Methods inherited from class java.lang.Exception
java.lang.Exception#printStackTrace(java.io.PrintStream), java.lang.Exception#printStackTrace(), java.lang.Exception#printStackTrace(java.io.PrintWriter), java.lang.Exception#fillInStackTrace(), java.lang.Exception#getCause(), java.lang.Exception#initCause(java.lang.Throwable), java.lang.Exception#toString(), java.lang.Exception#getMessage(), java.lang.Exception#getLocalizedMessage(), java.lang.Exception#getStackTrace(), java.lang.Exception#setStackTrace([Ljava.lang.StackTraceElement;), java.lang.Exception#wait(), java.lang.Exception#wait(long), java.lang.Exception#wait(long, int), java.lang.Exception#equals(java.lang.Object), java.lang.Exception#hashCode(), java.lang.Exception#getClass(), java.lang.Exception#notify(), java.lang.Exception#notifyAll()
 

Constructor Detail

ScriptExitException

public ScriptExitException(int exitCode)


ScriptExitException

public ScriptExitException(int exitCode, java.lang.String message, java.lang.Throwable cause)


ScriptExitException

public ScriptExitException(int exitCode, java.lang.String message)


ScriptExitException

public ScriptExitException(int exitCode, java.lang.Throwable cause)


 
Method Detail

getExitCode

public int getExitCode()


 

Groovy Documentation