<commit_before>using System;
using System.Runtime.Serialization;
using System.Security.Permissions;
using SevenDigital.Api.Wrapper.Requests;

namespace SevenDigital.Api.Wrapper.Exceptions
{
	public abstract class ApiException : Exception
	{
		public Request OriginalRequest { get; private set; }

		protected ApiException(string msg, Request originalRequest)
			: base(msg)
		{
			OriginalRequest = originalRequest;
		}

		protected ApiException(string msg, Exception innerException, Request originalRequest)
			: base(msg, innerException)
		{
			OriginalRequest = originalRequest;
		}

		protected ApiException(string msg) : base(msg)
		{
		}

		protected ApiException(string msg, Exception innerException)
			: base(msg, innerException)
		{<commit_msg>Added ApiException Uri parameter back in and marked it Obsolete to prevent major version change<commit_after>using System;
using System.Runtime.Serialization;
using System.Security.Permissions;
using SevenDigital.Api.Wrapper.Requests;

namespace SevenDigital.Api.Wrapper.Exceptions
{
	public abstract class ApiException : Exception
	{
		public Request OriginalRequest { get; private set; }

		[Obsolete("This is due to be removed, please use OriginalRequest.Url")]
		public string Uri 
		{ 
			get { return OriginalRequest.Url; }
		}

		protected ApiException(string msg, Request originalRequest)
			: base(msg)
		{
			OriginalRequest = originalRequest;
		}

		protected ApiException(string msg, Exception innerException, Request originalRequest)
			: base(msg, innerException)
		{
			OriginalRequest = originalRequest;
		}

		protected ApiException(string msg) : base(msg)
		{
		}

		protected ApiException(string msg, Exception innerException)
			: base(msg, innerException)
		{
{'fraction_non_alphanumeric': 0.0784313725490196, 'fraction_numerical': 0.0, 'mean_word_length': 4.822147651006712, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3015530', 'n_tokens_mistral': 522, 'n_tokens_neox': 472, 'n_words': 131}