API Reference > ecschema-editing > Diagnostic > SchemaItemDiagnostic > constructor constructor Method Initializes a new SchemaItemDiagnostic. SchemaItemDiagnostic<TYPE extends SchemaItem<TYPE>, ARGS extends any[]>(ecDefinition: SchemaItem, messageArgs: ARGS, category: DiagnosticCategory = DiagnosticCategory.Error): SchemaItemDiagnostic<TYPE, ARGS> Parameter Type Description ecDefinition SchemaItem The EC object 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 - SchemaItemDiagnostic<TYPE, ARGS> Defined in ecschema-editing/src/Validation/Diagnostic.ts Line 142 Last Updated: 11 June, 2024