Maintainer | Toshio Ito <debug.ito@gmail.com> |
---|---|
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
Synopsis
- data ResponseMessage s = ResponseMessage {
- requestId :: !UUID
- status :: !ResponseStatus
- result :: !(ResponseResult s)
- data ResponseStatus = ResponseStatus {
- code :: !ResponseCode
- message :: !Text
- attributes :: !Object
- data ResponseResult s = ResponseResult {
- resultData :: !s
- meta :: !Object
- data ResponseCode
- codeToInt :: ResponseCode -> Int
- codeFromInt :: Int -> Maybe ResponseCode
- isTerminating :: ResponseCode -> Bool
- isSuccess :: ResponseCode -> Bool
- isClientSideError :: ResponseCode -> Bool
- isServerSideError :: ResponseCode -> Bool
ResponseMessage
data ResponseMessage s Source #
ResponseMessage object from Gremlin Server. See http://tinkerpop.apache.org/docs/current/dev/provider/.
Type s
is the type of the response data.
ResponseMessage | |
|
Instances
ResponseStatus
data ResponseStatus Source #
"status" field.
ResponseStatus | |
|
Instances
ResponseResult
data ResponseResult s Source #
"result" field.
ResponseResult | |
|
Instances
ResponseCode
data ResponseCode Source #
Response status code
Success | |
NoContent | |
PartialContent | |
Unauthorized | |
Authenticate | |
MalformedRequest | |
InvalidRequestArguments | |
ServerError | |
ScriptEvaluationError | |
ServerTimeout | |
ServerSerializationError |
Instances
codeToInt :: ResponseCode -> Int Source #
codeFromInt :: Int -> Maybe ResponseCode Source #
isTerminating :: ResponseCode -> Bool Source #
Returns True
if the ResponseCode
is a terminating code.
isSuccess :: ResponseCode -> Bool Source #
Returns True
if the ResponseCode
is a success.
isClientSideError :: ResponseCode -> Bool Source #
Returns True
if the ResponseCode
is a client-side failure.
isServerSideError :: ResponseCode -> Bool Source #
Returns True
if the ResponseCode
is a server-side failure.