com.viber.bot.api.ApiException Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of viber-bot Show documentation
Show all versions of viber-bot Show documentation
Use this library to communicate with the Viber API to develop a bot for https://developers.viber.com/.
package com.viber.bot.api;
import java.util.Map;
import java.util.concurrent.ExecutionException;
public class ApiException extends ExecutionException {
private static final String STATUS_MESSAGE = "status_message";
public ApiException(final Map responseMap) {
super(responseMap.get(STATUS_MESSAGE).toString());
}
}