TelegramBots/src/main/java/org/telegram/telegrambots/TelegramApiException.java
2016-04-11 22:26:21 +02:00

31 lines
677 B
Java

package org.telegram.telegrambots;
/**
* @author Ruben Bermudez
* @version 1.0
* @brief Exception thrown when something goes wrong in the api
* @date 14 of January of 2016
*/
public class TelegramApiException extends Exception {
private String apiResponse = null;
public TelegramApiException(String message) {
super(message);
}
public TelegramApiException(String message, String apiResponse) {
super(message);
this.apiResponse = apiResponse;
}
public TelegramApiException(String message, Throwable cause) {
super(message, cause);
}
public String getApiResponse() {
return apiResponse;
}
}