hS3-0.5.8: Interface to Amazon's Simple Storage Service (S3)

Safe HaskellSafe-Inferred

Network.AWS.AWSResult

Contents

Description

Results from a query to Amazon Web Services. API Version 2006-03-01 http://docs.amazonwebservices.com/AmazonS3/2006-03-01/

Synopsis

Data Types

type AWSResult a = Either ReqError aSource

A result from processing a request to S3. Either some success value, or a ReqError.

data ReqError Source

An error from an S3 request, either at the network layer, or from S3 itself.

Constructors

NetworkError ConnError

Connection error at the network layer.

AWSError String String

AWSError code message constructs an error message from S3 itself. See http://docs.amazonwebservices.com/AmazonS3/2006-03-01/ErrorCodeList.html for a detailed list of possible codes.

Instances

prettyReqError :: ReqError -> StringSource

Pretty print an error message.