API Reference > ecschema-metadata > 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 core/ecschema-metadata/src/Validation/Diagnostic.ts Line 221 Last Updated: 11 June, 2024