AmazonServiceException Class

.NET Framework 4.5
 
 
 
Did this page help you?  Yes  No   Tell us about it...
A base exception for some Amazon Web Services.

Most exceptions thrown to client code will be service-specific exceptions, though some services may throw this exception if there is a problem which is caught in the core client code.

Inheritance Hierarchy

System.Object
  System.Exception
    Amazon.Runtime.AmazonServiceException

Namespace: Amazon.Runtime
Assembly: AWSSDK.dll
Version: 2.0.0.3

Syntax

C#
public class AmazonServiceException : Exception
         _Exception, ISerializable

The AmazonServiceException type exposes the following members

Properties

  Name Description
Public Property Data
Public Property ErrorCode The error code returned by the service
Public Property ErrorType Whether the error was attributable to Sender or Reciever.
Public Property HelpLink
Public Property HResult
Public Property InnerException
Public Property Message
Public Property RequestId The id of the request which generated the exception.
Public Property Source
Public Property StackTrace
Public Property StatusCode The HTTP status code from the service response
Public Property TargetSite

Version Information

.NET Framework:
Supported in: 4.5, 4.0, 3.5

.NET for Windows Store apps:
Supported in: Windows 8

.NET for Windows Phone:
Supported in: Window Phone 8