ApiException.cs 381 B

12345678910111213141516
  1. using System.Net;
  2. namespace AipGateway.API.Domain.Exceptions
  3. {
  4. public class ApiException : Exception
  5. {
  6. public int errorCode { get; set; }
  7. public string errorMessage { get; set; }
  8. public ApiException(int errorNo, string errorMsg) : base(errorMsg)
  9. {
  10. errorCode = errorNo;
  11. errorMessage = errorMsg;
  12. }
  13. }
  14. }