TelegramResponseException
class TelegramResponseException extends TelegramSDKException (View source)
Class TelegramResponseException
Methods
Creates a TelegramResponseException.
A factory for creating the appropriate exception based on the response from Telegram.
Returns the HTTP status code.
Returns the error type.
Returns the raw response used to create the exception.
Returns the decoded response used to create the exception.
Returns the response entity used to create the exception.
Details
at line 30
__construct(
TelegramResponse $response,
TelegramSDKException $previousException = null)
Creates a TelegramResponseException.
at line 48
static
TelegramResponseException
create(
TelegramResponse $response)
A factory for creating the appropriate exception based on the response from Telegram.
at line 89
int
getHttpStatusCode()
Returns the HTTP status code.
at line 99
string
getErrorType()
Returns the error type.
at line 109
string
getRawResponse()
Returns the raw response used to create the exception.
at line 119
array
getResponseData()
Returns the decoded response used to create the exception.
at line 129
TelegramResponse
getResponse()
Returns the response entity used to create the exception.