Class SequenceCompilerException

  • All Implemented Interfaces:
    Serializable

    public class SequenceCompilerException
    extends Throwable
    Exception for compilation of Java classes given as String.
    See Also:
    Serialized Form
    • Constructor Detail

      • SequenceCompilerException

        SequenceCompilerException​(String message,
                                  String sourceText,
                                  DiagnosticCollector<JavaFileObject> diagnostics)
        Creates a SequenceCompilerException with a message, source text and compiler diagnostics.
        Parameters:
        message - the exception message
        sourceText - the source text for the compiled class
        diagnostics - the compiler diagnostics
      • SequenceCompilerException

        SequenceCompilerException​(String message,
                                  Throwable cause,
                                  String sourceText,
                                  DiagnosticCollector<JavaFileObject> diagnostics)
        Creates a SequenceCompilerException with a message, a compiler thrown exception, the source text and compiler diagnostics.
        Parameters:
        message - the exception message
        cause - the compiler exception
        sourceText - the source text for the compiled class
        diagnostics - 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