using System;

namespace RudderSdk.Unity
{
  internal sealed class UnityRequestException : Exception
  {
    public int StatusCode { get; }
    public string ResponseBody { get; }

    public UnityRequestException(int statusCode, string responseBody, string message)
      : base(message)
    {
      StatusCode = statusCode;
      ResponseBody = responseBody;
    }
  }
}
