Class ServiceFailureException
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
SerializationInfoThe SerializationInfo that holds the serialized object data about the exception being thrown.
context
StreamingContextThe 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
stringDescribes 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
stringerrorType
ErrorTypeerrorCode
stringrequestId
stringstatusCode
HttpStatusCode
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
message
stringinnerException
ExceptionerrorType
ErrorTypeerrorCode
stringrequestId
stringstatusCode
HttpStatusCode