API Reference > ecschema-editing > Diagnostic > ClassDiagnostic > constructor constructor Method Initializes a new ClassDiagnostic. ClassDiagnostic<ARGS extends any[]>(ecClass: AnyClass, messageArgs: ARGS, category: DiagnosticCategory = DiagnosticCategory.Error): ClassDiagnostic<ARGS> Parameter Type Description ecClass AnyClass The class to associate with the diagnostic. messageArgs ARGS The arguments used when formatting the diagnostic message. category DiagnosticCategory The DiagnosticCategory to associate with the diagnostic, Error by default. Returns - ClassDiagnostic<ARGS> Defined in ecschema-editing/src/Validation/Diagnostic.ts Line 164 Last Updated: 12 June, 2024