Esempio n. 1
0
        public static BusinessException GetException(string message, int errCode, Exception innerException)
        {
            BusinessException ex = new BusinessException(message, errCode, innerException);

            ex.Error = new Error
            {
                Detail  = ex.ToString(),
                Message = ex.Message,
                ErrCode = ex.ErrCode
            };
            return(ex);
        }
Esempio n. 2
0
 public static BusinessException GetException(string message, int errCode)
 {
     return(BusinessException.GetException(message, errCode, null));
 }
Esempio n. 3
0
 public static BusinessException GetException(string message, Exception innerException)
 {
     return(BusinessException.GetException(message, 0, innerException));
 }