public DiagnosticCollector<JavaFileObject> getDiagnostics() {
        return diagnostics;
    }
Gets the diagnostics collected by this exception.

@return this exception's diagnostics
shared/common/src/main/java/com/alibaba/otter/shared/common/utils/compile/exception/JdkCompileException.java