Altairis.Fakturoid.Client.InternalExtensionMethods.EnsureFakturoidSuccess C# (CSharp) Method

EnsureFakturoidSuccess() public static method

public static EnsureFakturoidSuccess ( this r ) : void
r this
return void
        public static void EnsureFakturoidSuccess(this HttpResponseMessage r)
        {
            if (r == null) throw new ArgumentNullException(nameof(r));
            if (r.IsSuccessStatusCode) return;

            throw new FakturoidException(r);
        }
InternalExtensionMethods