// ------------------------------------------------------------
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.
// ------------------------------------------------------------
namespace Dapr.Client
{
using Dapr.Client.Http;
using System;
using System.Net;
///
/// This class represents the exception thrown when Service Invocation via Dapr encounters an error
///
public class InvocationException : Exception
{
///
/// The constructor.
///
public InvocationException(string message, Exception innerException, InvocationResponse response)
: base(message, innerException)
{
this.Response = response;
}
///
/// The Response
///
public InvocationResponse Response { get; }
}
}