Class FileCompiler.FileCompilerException

    • Constructor Detail

      • FileCompilerException

        FileCompilerException​(String message,
                              List<File> sourceFiles,
                              List<String> options,
                              DiagnosticCollector<JavaFileObject> diagnostics)
        Creates a FileCompiler.FileCompilerException with the error message, the list of source classes, and compiler diagnostics from the compilation.
        Parameters:
        message - the exception message
        sourceFiles - the list of source files
        options - the list of compiler options
        diagnostics - 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