dolittle/DotNET.SDK

View on GitHub
Source/Tenancy.Client/FailedToGetAllTenants.cs

Summary

Maintainability
A
0 mins
Test Coverage
F
0%
// Copyright (c) Dolittle. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.

using System;

namespace Dolittle.SDK.Tenancy.Client;

/// <summary>
/// Exception that gets thrown when getting all tenants failed.
/// </summary>
public class FailedToGetAllTenants : Exception
{
    /// <summary>
    /// Initializes a new instance of the <see cref="FailedToGetAllTenants"/> class.
    /// </summary>
    /// <param name="failure">The reason for why it failed.</param>
    public FailedToGetAllTenants(string failure)
        : base($"Failed to get all tenants because {failure}")
    {
    }
}