Class MessageResponseException

All Implemented Interfaces:
Jsonable, Serializable

Response returned when sending a message fails (i.e. returns a non-2xx status code). Since this is an unchecked exception, users are advised to catch it when calling MessagesClient.sendMessage(MessageRequest) to handle failures.
See Also:
  • Constructor Details

  • Method Details

    • fromJson

      Creates an instance of this class from a JSON payload.
      Parameters:
      json - The JSON string to parse.
      Returns:
      An instance of this class with all known fields populated from the JSON payload, if present.