API Reference > ecschema-editing > Diagnostic > RelationshipConstraintDiagnostic > constructor constructor Method Initializes a new RelationshipConstraintDiagnostic. RelationshipConstraintDiagnostic<ARGS extends any[]>(constraint: RelationshipConstraint, messageArgs: ARGS, category: DiagnosticCategory = DiagnosticCategory.Error): RelationshipConstraintDiagnostic<ARGS> Parameter Type Description constraint RelationshipConstraint The Relationship Constraint 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 - RelationshipConstraintDiagnostic<ARGS> Defined in ecschema-editing/src/Validation/Diagnostic.ts Line 205 Last Updated: 11 June, 2024