IHttpFailureFactory Interface
Creates Failure<TValue> instances that represent HTTP response errors.
public interface IHttpFailureFactoryRemarks
Section titled “Remarks”Register the default implementation via UseHttpFailureFactory(this IContainer).
Methods
Section titled “Methods”IHttpFailureFactory.CreateNotFound<TResult>(string, string, object) Method
Section titled “IHttpFailureFactory.CreateNotFound<TResult>(string, string, object) Method”Creates a Failure<TValue> representing a ‘Not Found’ error for a specified resource and identifier.
HAKOM.ErrorHandling.Core.Net.Api.Results.Failure<TResult> CreateNotFound<TResult>(string resource, string identifierType, object identifierValue);Type parameters
Section titled “Type parameters”TResult
The type of the result associated with the failure.
Parameters
Section titled “Parameters”resource System.String
The resource that was not found.
identifierType System.String
The type of identifier that was used to locate the resource (name, id, ...).
identifierValue System.Object
The value of the identifier that was not found.
Returns
Section titled “Returns”HAKOM.ErrorHandling.Core.Net.Api.Results.Failure<TResult>
A Failure<TValue> representing the ‘Not Found’ error.
Was this page helpful?Thanks for your feedback!