/// <summary>
 /// Create StreamApiException instance with WebException as inner exception, StreamApiError and message.
 /// </summary>
 /// <param name="innerException"></param>
 /// <param name="error"></param>
 /// <param name="message"></param>
 public StreamApiException(WebException innerException, StreamApiError error, string message)
     : base(message, innerException)
 {
     this.error = error;
 }
 /// <summary>
 /// Create StreamApiException instance with WebException as inner exception and StreamApiError.
 /// </summary>
 /// <param name="innerException"></param>
 /// <param name="error"></param>
 public StreamApiException(WebException innerException, StreamApiError error)
     : this(innerException, error, string.Empty)
 {
 }