I have below exception contract.
public class AdminBusinessException : Exception
{
/// <summary>
/// Gets or Sets Exception Code.
/// </summary>
public string ExceptionCode { get; set; }
/// <summary>
/// Gets or Sets Description.
/// </summary>
public string Description { get; set; }
/// <summary>
/// Initiates here.
/// </summary>
/// <param name="exceptionCode"></param>
/// <param name="description"></param>
public AdminBusinessException(string exceptionCode, string description)
{
this.ExceptionCode = exceptionCode;
this.Description = description;
}
}
So i want to throw exception code as well as description to my Http Client. Any one please help me on this.
I am strucking on this :( :(