Package randoop.compile
Class SequenceCompilerException
- java.lang.Object
-
- java.lang.Throwable
-
- randoop.compile.SequenceCompilerException
-
- All Implemented Interfaces:
Serializable
public class SequenceCompilerException extends Throwable
Exception for compilation of Java classes given asString
.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description private DiagnosticCollector<JavaFileObject>
diagnostics
The compiler diagnostics.private static long
serialVersionUID
private String
sourceText
The source text for the class.
-
Constructor Summary
Constructors Constructor Description SequenceCompilerException(String message, String sourceText, DiagnosticCollector<JavaFileObject> diagnostics)
Creates aSequenceCompilerException
with a message, source text and compiler diagnostics.SequenceCompilerException(String message, Throwable cause, String sourceText, DiagnosticCollector<JavaFileObject> diagnostics)
Creates aSequenceCompilerException
with a message, a compiler thrown exception, the source text and compiler diagnostics.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DiagnosticCollector<JavaFileObject>
getDiagnostics()
Return the compiler diagnostics.String
getSourceText()
Get the source text for the class being compiled when this exception was thrown.-
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
-
sourceText
private final String sourceText
The source text for the class.
-
diagnostics
private final DiagnosticCollector<JavaFileObject> diagnostics
The compiler diagnostics.
-
-
Constructor Detail
-
SequenceCompilerException
SequenceCompilerException(String message, String sourceText, DiagnosticCollector<JavaFileObject> diagnostics)
Creates aSequenceCompilerException
with a message, source text and compiler diagnostics.- Parameters:
message
- the exception messagesourceText
- the source text for the compiled classdiagnostics
- the compiler diagnostics
-
SequenceCompilerException
SequenceCompilerException(String message, Throwable cause, String sourceText, DiagnosticCollector<JavaFileObject> diagnostics)
Creates aSequenceCompilerException
with a message, a compiler thrown exception, the source text and compiler diagnostics.- Parameters:
message
- the exception messagecause
- the compiler exceptionsourceText
- the source text for the compiled classdiagnostics
- the compiler diagnostics
-
-
Method Detail
-
getSourceText
public String getSourceText()
Get the source text for the class being compiled when this exception was thrown.- Returns:
- the source text for the class that was being compiled
-
getDiagnostics
public DiagnosticCollector<JavaFileObject> getDiagnostics()
Return the compiler diagnostics.- Returns:
- the compiler diagnostics
-
-