Safe Haskell | None |
---|---|
Language | Haskell2010 |
- statusSuccess :: Status -> Bool
- class AWSError a where
- awsError :: a -> ServiceError String
- class AWSErrorCode a where
- awsErrorCode :: a -> ErrorCode
- newtype ErrorCode = ErrorCode Text
- data ErrorType
- data ServiceError a
- data RESTError
- restRequestId :: Lens' RESTError Text
- restType :: Lens' RESTError (Maybe ErrorType)
- restCode :: Lens' RESTError ErrorCode
- restMessage :: Lens' RESTError Text
- restError :: FromXML (Er a) => (Status -> Bool) -> Service a -> Status -> Maybe (ByteString -> ServiceError (Er a))
- data JSONError
- jsonType :: Lens' JSONError (Maybe Text)
- jsonCode :: Lens' JSONError ErrorCode
- jsonMessage :: Lens' JSONError Text
- jsonError :: FromJSON (Er a) => (Status -> Bool) -> Service a -> Status -> Maybe (ByteString -> ServiceError (Er a))
Status Checks
statusSuccess :: Status -> Bool Source
Classes
awsError :: a -> ServiceError String Source
Show a => AWSError (ServiceError a) |
class AWSErrorCode a where Source
awsErrorCode :: a -> ErrorCode Source
Types
data ServiceError a Source
An error type representing the subset of errors that can be directly attributed to this library.
HttpError HttpException | |
SerializerError Abbrev String | |
ServiceError Abbrev Status a | |
Errors [ServiceError a] |
Show a => Show (ServiceError a) | |
(Show a, Typeable * a) => Exception (ServiceError a) | |
Monoid (ServiceError a) | |
Show a => AWSError (ServiceError a) | |
Typeable (* -> *) ServiceError |
REST Errors
restError :: FromXML (Er a) => (Status -> Bool) -> Service a -> Status -> Maybe (ByteString -> ServiceError (Er a)) Source