AWS SDK Version 2 for .NET
API Reference

AWS services or capabilities described in AWS Documentation may vary by region/location. Click Getting Started with Amazon AWS to see specific differences applicable to the China (Beijing) Region.

.NET Framework 3.5
 
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: (assembly version)

Syntax

C#
public class AmazonServiceException : Exception
         _Exception, ISerializable

The AmazonServiceException type exposes the following members

Constructors

Properties

NameTypeDescription
Public Property Data System.Collections.IDictionary Inherited from System.Exception.
Public Property ErrorCode System.String The error code returned by the service
Public Property ErrorType Amazon.Runtime.ErrorType Whether the error was attributable to Sender or Reciever.
Public Property HelpLink System.String Inherited from System.Exception.
Public Property HResult System.Int32 Inherited from System.Exception.
Public Property InnerException System.Exception Inherited from System.Exception.
Public Property Message System.String Inherited from System.Exception.
Public Property RequestId System.String The id of the request which generated the exception.
Public Property Source System.String Inherited from System.Exception.
Public Property StackTrace System.String Inherited from System.Exception.
Public Property StatusCode System.Net.HttpStatusCode The HTTP status code from the service response
Public Property TargetSite System.Reflection.MethodBase Inherited from System.Exception.

Version Information

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

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

.NET for Windows Phone:
Supported in: Windows Phone 8.1, Windows Phone 8