Class Message

java.lang.Object
com.oracle.truffle.tools.dap.types.JSONBase
com.oracle.truffle.tools.dap.types.Message

public class Message extends JSONBase
A structured message object. Used to return errors from requests.
  • Method Details

    • getId

      public int getId()
      Unique identifier for the message.
    • setId

      public Message setId(int id)
    • getFormat

      public String 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

      public Message setFormat(String format)
    • getVariables

      public Map<String,String> getVariables()
      An object used as a dictionary for looking up the variables in the format string.
    • setVariables

      public Message setVariables(Map<String,String> variables)
    • getSendTelemetry

      public Boolean getSendTelemetry()
      If true send to telemetry.
    • setSendTelemetry

      public Message setSendTelemetry(Boolean sendTelemetry)
    • getShowUser

      public Boolean getShowUser()
      If true show user.
    • setShowUser

      public Message setShowUser(Boolean showUser)
    • getUrl

      public String getUrl()
      An optional url where additional information about this message can be found.
    • setUrl

      public Message setUrl(String url)
    • getUrlLabel

      public String getUrlLabel()
      An optional label that is presented to the user as the UI for opening the url.
    • setUrlLabel

      public Message setUrlLabel(String urlLabel)
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • create

      public static Message create(Integer id, String format)