Package com.vaadin.copilot
Class ErrorHandler
java.lang.Object
com.vaadin.copilot.CopilotServerClient
com.vaadin.copilot.ErrorHandler
- All Implemented Interfaces:
CopilotCommand
-
Field Summary
FieldsFields inherited from class com.vaadin.copilot.CopilotServerClient
SERVER_URL_ENVFields inherited from interface com.vaadin.copilot.CopilotCommand
KEY_CANCEL_REQ_ID, KEY_REQ_ID -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanhandleMessage(String command, elemental.json.JsonObject data, com.vaadin.base.devserver.DevToolsInterface devToolsInterface) static voidsendErrorResponse(com.vaadin.base.devserver.DevToolsInterface devToolsInterface, String command, elemental.json.JsonObject responseData, String error, Exception e) static voidstatic voidstatic elemental.json.JsonArrayMethods inherited from class com.vaadin.copilot.CopilotServerClient
buildRequest, getHttpClient, getLogger, getQueryURI, getServerBaseUrl, readValue, sendReactive, writeAsJsonStringMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.vaadin.copilot.CopilotCommand
canBeParallelCommand, handleConnect
-
Field Details
-
ERROR_KEY
- See Also:
-
ERROR_EXCEPTION_MESSAGE_KEY
- See Also:
-
ERROR_STACKTRACE_KEY
- See Also:
-
-
Constructor Details
-
ErrorHandler
public ErrorHandler(boolean sendErrors)
-
-
Method Details
-
toJson
-
setError
-
setError
-
sendErrorResponse
-
handleMessage
public boolean handleMessage(String command, elemental.json.JsonObject data, com.vaadin.base.devserver.DevToolsInterface devToolsInterface) - Specified by:
handleMessagein interfaceCopilotCommand
-