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

Copyright(c) Greg Heartsfield 2007
LicenseBSD3
Safe HaskellSafe-Inferred
LanguageHaskell98

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 a Source

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 -> String Source

Pretty print an error message.