JsonPatchError<TModel> Class¶
Inheritance Hierarchy¶
System.Object
Microsoft.AspNet.JsonPatch.JsonPatchError<TModel>
Constructors¶
-
JsonPatchError
(TModel, Microsoft.AspNet.JsonPatch.Operations.Operation<TModel>, System.String)¶ Initializes a new instance of [Microsoft.AspNet.JsonPatch.JsonPatchError`1](Microsoft.AspNet.JsonPatch.JsonPatchError`1.yml).
Arguments: - affectedObject (TModel) – The object that is affected by the error.
- operation (Microsoft.AspNet.JsonPatch.Operations.Operation{{TModel}}) – The [Microsoft.AspNet.JsonPatch.Operations.Operation`1](Microsoft.AspNet.JsonPatch.Operations.Operation`1.yml) that caused the error.
- errorMessage (System.String) – The error message.
public JsonPatchError(TModel affectedObject, Operation<TModel> operation, string errorMessage)
-
Properties¶
-
AffectedObject
()¶ Gets the object that is affected by the error.
Return type: TModel public TModel AffectedObject { get; }
-
ErrorMessage
()¶ Gets the error message.
Return type: System.String public string ErrorMessage { get; }
-
Operation
()¶ Gets the [Microsoft.AspNet.JsonPatch.Operations.Operation`1](Microsoft.AspNet.JsonPatch.Operations.Operation`1.yml) that caused the error.
Return type: Microsoft.AspNet.JsonPatch.Operations.Operation{{TModel}} public Operation<TModel> Operation { get; }
-