public bool GetMessageFromException(Exception ex, SdtMessages_Message msg) { try { StorageException stoex = (StorageException)ex; msg.gxTpr_Id = stoex.RequestInformation?.ExtendedErrorInformation?.ErrorCode; return(true); } catch (Exception) { return(false); } }
public bool GetMessageFromException(Exception ex, SdtMessages_Message msg) { try { AmazonS3Exception s3ex = (AmazonS3Exception)ex; msg.gxTpr_Id = s3ex.ErrorCode; return(true); } catch (Exception) { return(false); } }
public bool GetMessageFromException(Exception ex, SdtMessages_Message msg) { try { GoogleApiException gex = (GoogleApiException)ex; msg.gxTpr_Id = gex.HttpStatusCode.ToString(); //should be the Status Code https://github.com/google/google-api-dotnet-client/issues/899 return(true); } catch (Exception) { return(false); } }
public bool GetMessageFromException(Exception ex, SdtMessages_Message msg) { return(false); }