polyglot.main
Class Main.TerminationException

java.lang.Object
  extended byjava.lang.Throwable
      extended byjava.lang.Exception
          extended byjava.lang.RuntimeException
              extended bypolyglot.main.Main.TerminationException
All Implemented Interfaces:
java.io.Serializable
Enclosing class:
Main

public static class Main.TerminationException
extends java.lang.RuntimeException

This exception signals termination of the compiler. It should be used instead of System.exit to allow Polyglot to be called within a JVM that wasn't started specifically for Polyglot, e.g. the Apache ANT framework.

See Also:
Serialized Form

Field Summary
 int exitCode
           
 
Constructor Summary
Main.TerminationException(int exit)
           
Main.TerminationException(java.lang.String msg)
           
Main.TerminationException(java.lang.String msg, int exit)
           
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

exitCode

public final int exitCode
Constructor Detail

Main.TerminationException

public Main.TerminationException(java.lang.String msg)

Main.TerminationException

public Main.TerminationException(int exit)

Main.TerminationException

public Main.TerminationException(java.lang.String msg,
                                 int exit)