using System.Net; namespace AipGateway.API.Domain.Exceptions { public class ApiException : Exception { public int errorCode { get; set; } public string errorMessage { get; set; } public ApiException(int errorNo, string errorMsg) : base(errorMsg) { errorCode = errorNo; errorMessage = errorMsg; } } }