Interface IValidationFailure
- Namespace
- Cratis.Arc.Validation
- Assembly
- Cratis.Arc.Core.dll
Implemented by an exception that represents invalid command input rather than a server fault.
public interface IValidationFailure
- Extension Methods
Remarks
When an exception implementing this interface surfaces within the command pipeline, it is converted into a command validation failure (mapping to HTTP 400) instead of an error response (HTTP 500). Throw an exception implementing this to reject a command as invalid from code that runs inside the pipeline — for example resolving a dependency that requires client-provided input that was not supplied.
Properties
ValidationResult
Gets the ValidationResult describing why the command is invalid.
ValidationResult ValidationResult { get; }