polyglot.main
Class UsageError

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by polyglot.main.UsageError
All Implemented Interfaces:
java.io.Serializable

public class UsageError
extends java.lang.Exception

An exception used to indicate a command-line usage error.

See Also:
Serialized Form

Field Summary
protected  int exitCode
           
 
Constructor Summary
UsageError(java.lang.String s)
           
UsageError(java.lang.String s, int exitCode)
           
 
Method Summary
 int exitCode()
           
 
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

protected final int exitCode
Constructor Detail

UsageError

public UsageError(java.lang.String s)

UsageError

public UsageError(java.lang.String s,
                  int exitCode)
Method Detail

exitCode

public int exitCode()