We use cookies to serve our customers and website visitors in the best possible way. Cookies are used for the proper functioning of the website and for improving the user experience, monitoring visitor traffic and marketing purposes. By continuing to browse the site, you agree to our use of cookies. You can read more about cookies here.
com.vaadin.copilot.
Package com.vaadin.copilot
Class ErrorHandler
java.lang.Object
com.vaadin.copilot.CopilotServerClient
com.vaadin.copilot.ErrorHandler
All Implemented Interfaces:
-
Field Summary
FieldsFields inherited from class com.vaadin.copilot.CopilotServerClient
SERVER_URL_ENV
Fields inherited from interface com.vaadin.copilot.CopilotCommand
KEY_CANCEL_REQ_ID, KEY_REQ_ID
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
handleMessage
(String command, elemental.json.JsonObject data, DevToolsInterface devToolsInterface) static void
sendErrorResponse
(DevToolsInterface devToolsInterface, String command, elemental.json.JsonObject responseData, String error, Exception e) static void
static void
static elemental.json.JsonArray
Methods inherited from class com.vaadin.copilot.CopilotServerClient
buildRequest, getHttpClient, getLogger, getQueryURI, getServerBaseUrl, readValue, sendReactive, writeAsJsonString
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods 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
public static void sendErrorResponse(DevToolsInterface devToolsInterface, String command, elemental.json.JsonObject responseData, String error, Exception e) -
handleMessage
public boolean handleMessage(String command, elemental.json.JsonObject data, DevToolsInterface devToolsInterface) Specified by:
handleMessage
in interfaceCopilotCommand
-