Class TelegramApiRequestException
java.lang.Object
java.lang.Throwable
java.lang.Exception
org.telegram.telegrambots.meta.exceptions.TelegramApiException
org.telegram.telegrambots.meta.exceptions.TelegramApiRequestException
- All Implemented Interfaces:
Serializable
- Version:
- 1.0 Exception thrown when something goes wrong in the api
- Author:
- Ruben Bermudez
- See Also:
-
Constructor Summary
ConstructorDescriptionTelegramApiRequestException
(String message) TelegramApiRequestException
(String message, Throwable cause) TelegramApiRequestException
(String message, ApiResponse<?> response) -
Method Summary
Modifier and TypeMethodDescriptionMore detailed error description.toString()
Just left as backward compatibility if anybody used this in version 5.2.0 or older.Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
-
Constructor Details
-
TelegramApiRequestException
-
TelegramApiRequestException
-
TelegramApiRequestException
-
-
Method Details
-
getApiResponse
-
getErrorCode
-
getParameters
-
getMessage
More detailed error description.- Overrides:
getMessage
in classThrowable
- Returns:
- assembled response code and reason
-
toString
Just left as backward compatibility if anybody used this in version 5.2.0 or older.
-