Class ErrorGetValueToBeValidatedResponse
A GetValueToBeValidatedResponse which indicates failure and that an error should be added to the results.
Implements
System.IEquatable<GetValueToBeValidatedResponse>
Inherited Members
System.Object.Equals(System.Object, System.Object)
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: CSF.Validation.RuleExecution
Assembly: CSF.Validation.Abstractions.dll
Syntax
public sealed class ErrorGetValueToBeValidatedResponse : GetValueToBeValidatedResponse, IEquatable<GetValueToBeValidatedResponse>
Constructors
| Improve this Doc View SourceErrorGetValueToBeValidatedResponse(Exception)
Initialises a new instance of ErrorGetValueToBeValidatedResponse.
Declaration
public ErrorGetValueToBeValidatedResponse(Exception exception)
Parameters
Type | Name | Description |
---|---|---|
System.Exception | exception | The exception which lead to this result. |
Properties
| Improve this Doc View SourceException
Gets the exception which lead to this result.
Declaration
public Exception Exception { get; }
Property Value
Type | Description |
---|---|
System.Exception |
IsSuccess
Gets a value that indicates whether ornot the current instance represents success.
Declaration
public override bool IsSuccess { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
Overrides
Methods
| Improve this Doc View SourceEquals(GetValueToBeValidatedResponse)
Gets a value that indicates whether or not the current instance is equal to the specified GetValueToBeValidatedResponse.
Declaration
public override bool Equals(GetValueToBeValidatedResponse other)
Parameters
Type | Name | Description |
---|---|---|
GetValueToBeValidatedResponse | other | The value response. |
Returns
Type | Description |
---|---|
System.Boolean | true if the current instance is equal to the specified valuse response; false otherwise. |
Overrides
Implements
System.IEquatable<T>