dolittle/DotNET.SDK

View on GitHub
Source/Services/ReverseCallClientNotConnected.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.Services;

/// <summary>
/// Exception that gets thrown when the <see cref="ReverseCallClient{TClientMessage, TServerMessage, TConnectArguments, TConnectResponse, TRequest, TResponse}.Handle(IReverseCallHandler{TRequest, TResponse}, System.Threading.CancellationToken)" />
/// is called before it has successfully established a connection.
/// </summary>
public class ReverseCallClientNotConnected : Exception
{
    /// <summary>
    /// Initializes a new instance of the <see cref="ReverseCallClientNotConnected"/> class.
    /// </summary>
    public ReverseCallClientNotConnected()
        : base("Cannot handle Reverse Call Client before it has established a connection")
    {
    }
}