API Reference > ecschema-metadata > Diagnostic > FormatDiagnosticReporter > reportDiagnostic reportDiagnostic MethodProtectedAbstract Handles the given IDiagnostic based on the implementation requirements for a given reporter. reportDiagnostic(diagnostic: AnyDiagnostic, messageText: string): void Parameter Type Description diagnostic AnyDiagnostic The diagnostic to report. messageText string The formatted message. Returns - void Defined in core/ecschema-metadata/src/Validation/DiagnosticReporter.ts Line 129 Last Updated: 12 June, 2024