Class Response
java.lang.Object
com.oracle.truffle.tools.dap.types.JSONBase
com.oracle.truffle.tools.dap.types.ProtocolMessage
com.oracle.truffle.tools.dap.types.Response
- Direct Known Subclasses:
AttachResponse,BreakpointLocationsResponse,CancelResponse,CompletionsResponse,ConfigurationDoneResponse,ContinueResponse,DataBreakpointInfoResponse,DisassembleResponse,DisconnectResponse,ErrorResponse,EvaluateResponse,ExceptionInfoResponse,GotoResponse,GotoTargetsResponse,InitializeResponse,LaunchResponse,LoadedSourcesResponse,ModulesResponse,NextResponse,PauseResponse,ReadMemoryResponse,RestartFrameResponse,RestartResponse,ReverseContinueResponse,RunInTerminalResponse,ScopesResponse,SetBreakpointsResponse,SetDataBreakpointsResponse,SetExceptionBreakpointsResponse,SetExpressionResponse,SetFunctionBreakpointsResponse,SetVariableResponse,SourceResponse,StackTraceResponse,StepBackResponse,StepInResponse,StepInTargetsResponse,StepOutResponse,TerminateResponse,TerminateThreadsResponse,ThreadsResponse,VariablesResponse
Response for a request.
-
Method Summary
Modifier and TypeMethodDescriptionstatic ResponsebooleangetBody()Contains request result if success is true and optional error details if success is false.The command requested.Contains the raw error in short form if 'success' is false.intSequence number of the corresponding request.inthashCode()booleanOutcome of the request.setCommand(String command) setMessage(String message) setRequestSeq(int requestSeq) setSuccess(boolean success)
-
Method Details
-
getRequestSeq
public int getRequestSeq()Sequence number of the corresponding request. -
setRequestSeq
-
isSuccess
public boolean isSuccess()Outcome of the request. If true, the request was successful and the 'body' attribute may contain the result of the request. If the value is false, the attribute 'message' contains the error in short form and the 'body' may contain additional information (see 'ErrorResponse.body.error'). -
setSuccess
-
getCommand
The command requested. -
setCommand
-
getMessage
Contains the raw error in short form if 'success' is false. This raw error might be interpreted by the frontend and is not shown in the UI. Some predefined values exist. Values: 'cancelled': request was cancelled. etc. -
setMessage
-
getBody
Contains request result if success is true and optional error details if success is false. -
setBody
-
equals
- Overrides:
equalsin classProtocolMessage
-
hashCode
public int hashCode()- Overrides:
hashCodein classProtocolMessage
-
create
-