Esempio n. 1
0
        private static string HumanReadable(RadarrErrors apiErrors)
        {
            var firstError = apiErrors.Errors.First();
            var details    = string.Join("\n", apiErrors.Errors.Select(error =>
            {
                return($"{error.Title} ({error.Status}, RayId: {error.RayId}), Details: {error.Detail}");
            }));

            return($"Error while calling api: {firstError.Title}\nFull error(s): {details}");
        }
Esempio n. 2
0
 public RadarrListException(RadarrErrors apiError)
     : base(HumanReadable(apiError))
 {
     APIErrors = apiError;
 }