Class AmazonUnmarshallingException
This exception is thrown when there is a parse error on the response back from AWS.
public class AmazonUnmarshallingException : AmazonServiceException, ISerializable
- Inheritance
-
AmazonUnmarshallingException
- Implements
- Derived
- Inherited Members
Constructors
AmazonUnmarshallingException(SerializationInfo, StreamingContext)
Constructs a new instance of the AmazonSimpleDBException class with serialized data.
protected AmazonUnmarshallingException(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).
AmazonUnmarshallingException(string, string, Exception)
public AmazonUnmarshallingException(string requestId, string lastKnownLocation, Exception innerException)
Parameters
AmazonUnmarshallingException(string, string, Exception, HttpStatusCode)
public AmazonUnmarshallingException(string requestId, string lastKnownLocation, Exception innerException, HttpStatusCode statusCode)
Parameters
requestId
stringlastKnownLocation
stringinnerException
ExceptionstatusCode
HttpStatusCode
AmazonUnmarshallingException(string, string, string, Exception)
public AmazonUnmarshallingException(string requestId, string lastKnownLocation, string responseBody, Exception innerException)
Parameters
AmazonUnmarshallingException(string, string, string, Exception, HttpStatusCode)
public AmazonUnmarshallingException(string requestId, string lastKnownLocation, string responseBody, Exception innerException, HttpStatusCode statusCode)
Parameters
requestId
stringlastKnownLocation
stringresponseBody
stringinnerException
ExceptionstatusCode
HttpStatusCode
AmazonUnmarshallingException(string, string, string, string, Exception)
public AmazonUnmarshallingException(string requestId, string lastKnownLocation, string responseBody, string message, Exception innerException)
Parameters
requestId
stringlastKnownLocation
stringresponseBody
stringmessage
stringinnerException
Exception
Properties
LastKnownLocation
Last known location in the response that was parsed, if available.
public string LastKnownLocation { get; }
Property Value
Message
public override string Message { get; }
Property Value
ResponseBody
The entire response body that caused this exception, if available.
public string ResponseBody { get; }
Property Value
Methods
GetObjectData(SerializationInfo, StreamingContext)
Sets the SerializationInfo with information about the exception.
[SecurityCritical]
public override void GetObjectData(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 a null reference (Nothing in Visual Basic).