---
title: SaifValidationException
summary: API reference for SaifValidationException.
status: draft
owner: saif-docgen
last_reviewed: 2026-09-15
library: SAIF.Framework.Common
reference_type: package
---

# SaifValidationException

Exception thrown to signal a validation failure, optionally carrying a full `IValidationResult` so callers can surface all failures rather than a single message. ([BR-044](../../business-rules.md#br-044-a-saifvalidationexception-always-exposes-a-non-null-ivalidationresult))

## Purpose
- Exception thrown to signal a validation failure, optionally carrying a full `IValidationResult` so callers can surface all failures rather than a single message. ([BR-044](../../business-rules.md#br-044-a-saifvalidationexception-always-exposes-a-non-null-ivalidationresult))

## Context
- Namespace: `SAIF.Common`
- Assembly/package: `SAIF.Framework.Common`

## Public members
| Member | Signature | Purpose |
| --- | --- | --- |
| ValidationResult | `public IValidationResult ValidationResult { get; set; }` | The full set of validation failures associated with this exception, when constructed with one. |
| SaifValidationException() | `public SaifValidationException()` | Parameterless constructor. |
| SaifValidationException(IValidationResult validationResult) | `public SaifValidationException(IValidationResult validationResult)` | Constructs the exception carrying a pre-built validation result. ([BR-044](../../business-rules.md#br-044-a-saifvalidationexception-always-exposes-a-non-null-ivalidationresult)) |
| SaifValidationException(string errorMessage) | `public SaifValidationException(string errorMessage)` | Constructs the exception from a single free-text error message, wrapping it in a single-message `ValidationResult` internally. ([BR-045](../../business-rules.md#br-045-a-validation-exception-built-from-a-bare-message-carries-a-single-failure-whose-propertyname-is-the-empty-string%2C-and-the-two-argument-overload-binds-the-failure-to-a-named-property)) |
| SaifValidationException(string propertyName, string errorMessage) | `public SaifValidationException(string propertyName, string errorMessage)` | Constructs the exception from a single named-property failure. ([BR-045](../../business-rules.md#br-045-a-validation-exception-built-from-a-bare-message-carries-a-single-failure-whose-propertyname-is-the-empty-string%2C-and-the-two-argument-overload-binds-the-failure-to-a-named-property)) |


## Sources
- `Common/SAIF.Common/Classes/SaifValidationException.cs`
