You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
17 lines
357 B
17 lines
357 B
using Flurl.Http;
|
|
|
|
namespace Recyclarr.Cli.Processors.ErrorHandling;
|
|
|
|
public class ServiceErrorMessageExtractor(FlurlHttpException e) : IServiceErrorMessageExtractor
|
|
{
|
|
public async Task<string> GetErrorMessage()
|
|
{
|
|
return await e.GetResponseStringAsync();
|
|
}
|
|
|
|
public int? GetHttpStatusCode()
|
|
{
|
|
return e.StatusCode;
|
|
}
|
|
}
|