Class ValidationObjectException
An exception that is thrown out of functions that have no realtime return to another system, for example if a queue function is triggered by a queue item and that item does not conform to the expected validation rules this exception will be thrown so it can at least be logged. In contrast HTTP triggers will return a BadRequest with the ValidationResult serialized in the response.
Inheritance
System.Object
ValidationObjectException
Namespace: FunctionMonkey.Commanding.Abstractions.Validation
Assembly: FunctionMonkey.Commanding.Abstractions.dll
Syntax
public class ValidationObjectException : Exception
Constructors
| Improve this Doc View SourceValidationObjectException(String, Object, String)
Constructor for the exception
Declaration
public ValidationObjectException(string functionName, object validationResult, string associatedId = null)
Parameters
Type | Name | Description |
---|---|---|
System. |
functionName | The name of the function that encountered the validation errors |
System. |
validationResult | The validation result |
System. |
associatedId | Any associated ID (e.g. a message ID) |
Properties
| Improve this Doc View SourceAssociatedId
An associated ID (for example a message ID), or null if none available
Declaration
public string AssociatedId { get; }
Property Value
Type | Description |
---|---|
System. |
FunctionName
Name of the function that encountered the validation errors
Declaration
public string FunctionName { get; }
Property Value
Type | Description |
---|---|
System. |
ValidationResult
The validation result
Declaration
public object ValidationResult { get; }
Property Value
Type | Description |
---|---|
System. |