Class ServiceFailureException
Polly exception
public class ServiceFailureException : AmazonPollyException
  - Inheritance
 - 
      
      
      ServiceFailureException
 
Constructors
ServiceFailureException(Exception)
Construct instance of ServiceFailureException
public ServiceFailureException(Exception innerException)
  Parameters
innerExceptionException
ServiceFailureException(SerializationInfo, StreamingContext)
Constructs a new instance of the ServiceFailureException class with serialized data.
protected ServiceFailureException(SerializationInfo info, StreamingContext context)
  Parameters
infoSerializationInfoThe SerializationInfo that holds the serialized object data about the exception being thrown.
contextStreamingContextThe StreamingContext that contains contextual information about the source or destination.
Exceptions
- ArgumentNullException
 The
infoparameter is null.- SerializationException
 The class name is null or HResult is zero (0).
ServiceFailureException(string)
Constructs a new ServiceFailureException with the specified error message.
public ServiceFailureException(string message)
  Parameters
messagestringDescribes the error encountered.
ServiceFailureException(string, ErrorType, string, string, HttpStatusCode)
Construct instance of ServiceFailureException
public ServiceFailureException(string message, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode)
  Parameters
messagestringerrorTypeErrorTypeerrorCodestringrequestIdstringstatusCodeHttpStatusCode
ServiceFailureException(string, Exception)
Construct instance of ServiceFailureException
public ServiceFailureException(string message, Exception innerException)
  Parameters
ServiceFailureException(string, Exception, ErrorType, string, string, HttpStatusCode)
Construct instance of ServiceFailureException
public ServiceFailureException(string message, Exception innerException, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode)
  Parameters
messagestringinnerExceptionExceptionerrorTypeErrorTypeerrorCodestringrequestIdstringstatusCodeHttpStatusCode