| Copyright | No Rights Reserved |
|---|---|
| License | Public Domain |
| Maintainer | Tebello Thejane <zyxoas+hackage@gmail.com> |
| Stability | Experimental |
| Portability | non-portable (GHC Extensions) |
| Safe Haskell | None |
| Language | Haskell2010 |
Network.Bitcoin.BitX.Response
Description
The common return type of the API.
Documentation
data BitXAPIResponse recd Source
This retun type enumerates all possible failure modes.
Constructors
| ExceptionResponse HttpException | Some exception occured while making the call to BitX. |
| ErrorResponse BitXError | BitX returned an error record instead of returning the data we were expecting. |
| ValidResponse recd | We received the data type we were expecting. |
| UnparseableResponse (Response ByteString) | BitX retuned data which couldn't be parsed, such as some text which was probably not JSON format. |
Instances
| Show recd => Show (BitXAPIResponse recd) |