Package randoop.compile
Class FileCompiler.FileCompilerException
- java.lang.Object
-
- java.lang.Throwable
-
- randoop.compile.FileCompiler.FileCompilerException
-
- All Implemented Interfaces:
Serializable
- Enclosing class:
- FileCompiler
public static class FileCompiler.FileCompilerException extends Throwable
Exception for errors during compilation usingFileCompiler
.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description private DiagnosticCollector<JavaFileObject>
diagnostics
The compiler diagnostics.private List<String>
options
The compiler options.private static long
serialVersionUID
private List<File>
sourceFiles
The list of source files for the compilation.
-
Constructor Summary
Constructors Constructor Description FileCompilerException(String message, List<File> sourceFiles, List<String> options, DiagnosticCollector<JavaFileObject> diagnostics)
Creates aFileCompiler.FileCompilerException
with the error message, the list of source classes, and compiler diagnostics from the compilation.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DiagnosticCollector<JavaFileObject>
getDiagnostics()
Returns the compiler diagnostics for the compilation that generated this exception.List<String>
getOptions()
Returns the list of compiler options used in the compilation that generated this error.List<File>
getSourceFiles()
Returns the list of source files used in the compilation that generated this error.-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Field Detail
-
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
-
diagnostics
private final DiagnosticCollector<JavaFileObject> diagnostics
The compiler diagnostics.
-
-
Constructor Detail
-
FileCompilerException
FileCompilerException(String message, List<File> sourceFiles, List<String> options, DiagnosticCollector<JavaFileObject> diagnostics)
Creates aFileCompiler.FileCompilerException
with the error message, the list of source classes, and compiler diagnostics from the compilation.- Parameters:
message
- the exception messagesourceFiles
- the list of source filesoptions
- the list of compiler optionsdiagnostics
- the compiler diagnostics
-
-
Method Detail
-
getSourceFiles
public List<File> getSourceFiles()
Returns the list of source files used in the compilation that generated this error.- Returns:
- the list of source files for which compilation generated this exception
-
getOptions
public List<String> getOptions()
Returns the list of compiler options used in the compilation that generated this error.- Returns:
- the list of compiler options for which compilation generated this exception
-
getDiagnostics
public DiagnosticCollector<JavaFileObject> getDiagnostics()
Returns the compiler diagnostics for the compilation that generated this exception.- Returns:
- the compiler diagnostics for the compilation that generated this exception
-
-