Table of Contents

Class ServiceFailureException

Namespace
Amazon.Polly.Model
Assembly
AWSSDK.Polly.dll

Polly exception

public class ServiceFailureException : AmazonPollyException
Inheritance
ServiceFailureException

Constructors

ServiceFailureException(Exception)

Construct instance of ServiceFailureException

public ServiceFailureException(Exception innerException)

Parameters

innerException Exception

ServiceFailureException(SerializationInfo, StreamingContext)

Constructs a new instance of the ServiceFailureException class with serialized data.

protected ServiceFailureException(SerializationInfo info, StreamingContext context)

Parameters

info SerializationInfo

The SerializationInfo that holds the serialized object data about the exception being thrown.

context StreamingContext

The StreamingContext that contains contextual information about the source or destination.

Exceptions

ArgumentNullException

The info parameter 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

message string

Describes 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

message string
errorType ErrorType
errorCode string
requestId string
statusCode HttpStatusCode

ServiceFailureException(string, Exception)

Construct instance of ServiceFailureException

public ServiceFailureException(string message, Exception innerException)

Parameters

message string
innerException Exception

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

message string
innerException Exception
errorType ErrorType
errorCode string
requestId string
statusCode HttpStatusCode