uk.ac.man.cs.rainbow
Class Compiler.Errors

java.lang.Object
  |
  +--java.lang.Throwable
        |
        +--java.lang.Exception
              |
              +--uk.ac.man.cs.rainbow.RainbowException
                    |
                    +--uk.ac.man.cs.rainbow.Compiler.Exception
                          |
                          +--uk.ac.man.cs.rainbow.Compiler.Errors
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
JSCompiler.JSSemanticErrors
Enclosing class:
Compiler

public static class Compiler.Errors
extends Compiler.Exception

When there are compiler errors, this class is thrown. Typically, this class is used to indicate that non-recoverable errors happened, though there may be recoverable errors (like warnings in the array of errors as well.

See Also:
Compiler.Error, Serialized Form

Constructor Summary
Compiler.Errors(Compiler.Error[] errors)
          Create a new exception with the given list of errors.
Compiler.Errors(Vector errors)
          Create a new exception with the given list of errors.
 
Method Summary
 Compiler.Error[] getErrors()
          What are those semantic errors.
 
Methods inherited from class uk.ac.man.cs.rainbow.RainbowException
getDetail, getMessage, setAugment, setDetail
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getLocalizedMessage, printStackTrace, printStackTrace, printStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Compiler.Errors

public Compiler.Errors(Compiler.Error[] errors)
Create a new exception with the given list of errors.
Parameters:
errors - The list of errors that triggered the creation of this exception.

Compiler.Errors

public Compiler.Errors(Vector errors)
Create a new exception with the given list of errors.
Parameters:
errors - The list of errors that triggered the creation of this exception.
Method Detail

getErrors

public Compiler.Error[] getErrors()
What are those semantic errors. Note that this information is (currently) compiler-specific and understanding it requires understanding the format of the error output from the compiler.