Exemplo n.º 1
0
 public SDKServiceException(string sourceProvider, HttpStatusCode serverResponseCode, string serverResponseDescription, string message)
     : base(message)
 {
     SourceProvider            = sourceProvider;
     ServerResponseCode        = serverResponseCode;
     ServerResponseDescription = serverResponseDescription;
     try
     {
         ServiceError = JsonConvert.DeserializeObject <ServiceErrror>(message);
     }
     catch { }
 }
Exemplo n.º 2
0
 public SDKServiceException(string message, ServiceErrror serviceError)
     : base(message)
 {
     this.ServiceError = serviceError;
 }