示例#1
0
 /// <summary>
 ///     Construct DTO model without payload object using WebApiServiceException.
 /// </summary>
 /// <param name="exception">the exception</param>
 public DtoModelOutgoing(ManagedException exception, IEnumerable<IPayload> errorDetails)
 {
     Payload = errorDetails;
     Service = new ServiceObject(exception.ErrorCode, exception.ErrorMessage);
 }
示例#2
0
 /// <summary>
 ///     Construct DTO model without payload object using WebApiServiceException.
 /// </summary>
 /// <param name="exception">the exception</param>
 public DtoModelOutgoing(ManagedException exception, IPayload errorDetails = null)
 {
     Payload = errorDetails;
     Service = new ServiceObject(exception.ErrorCode, exception.ErrorMessage);
 }