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
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.
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.