Class Message
java.lang.Object
com.oracle.truffle.tools.dap.types.JSONBase
com.oracle.truffle.tools.dap.types.Message
A structured message object. Used to return errors from requests.
-
Method Summary
Modifier and TypeMethodDescriptionstatic MessagebooleanA format string for the message.intgetId()Unique identifier for the message.If true send to telemetry.If true show user.getUrl()An optional url where additional information about this message can be found.An optional label that is presented to the user as the UI for opening the url.An object used as a dictionary for looking up the variables in the format string.inthashCode()setId(int id) setSendTelemetry(Boolean sendTelemetry) setShowUser(Boolean showUser) setUrlLabel(String urlLabel) setVariables(Map<String, String> variables)
-
Method Details
-
getId
public int getId()Unique identifier for the message. -
setId
-
getFormat
A format string for the message. Embedded variables have the form '{name}'. If variable name starts with an underscore character, the variable does not contain user data (PII) and can be safely used for telemetry purposes. -
setFormat
-
getVariables
An object used as a dictionary for looking up the variables in the format string. -
setVariables
-
getSendTelemetry
If true send to telemetry. -
setSendTelemetry
-
getShowUser
If true show user. -
setShowUser
-
getUrl
An optional url where additional information about this message can be found. -
setUrl
-
getUrlLabel
An optional label that is presented to the user as the UI for opening the url. -
setUrlLabel
-
equals
-
hashCode
public int hashCode() -
create
-