danog\MadelineProto\RPCErrorException
Author: Daniil Gentili daniil@daniil.it
Indicates an error returned by Telegram’s API.
Properties
$rpc
:string
RPC error$tlTrace
:string
TL trace.
Method list:
localizeMessage(mixed $method, int $code, string $error): string
getLocalization(): string
setLocalization(string $localization): void
__construct(string $rpc, int $code = 0, mixed $caller = '', ?\danog\MadelineProto\Exception $previous = NULL)
getMessage(): string
getCode(): mixed
getFile(): string
getLine(): int
getTrace(): array
getPrevious(): ?\Throwable
getTraceAsString(): string
updateTLTrace(array $trace): void
getTLTrace(): string
setTLTrace(string $tlTrace): void
prettifyTL(string $init = '', array $trace = NULL): void
Methods:
localizeMessage(mixed $method, int $code, string $error): string
Parameters:
$method
:mixed
$code
:int
$error
:string
getLocalization(): string
Get localized error name.
setLocalization(string $localization): void
Set localized error name.
Parameters:
$localization
:string
__construct(string $rpc, int $code = 0, mixed $caller = '', ?\danog\MadelineProto\Exception $previous = NULL)
Parameters:
$rpc
:string
$code
:int
$caller
:mixed
$previous
:?\danog\MadelineProto\Exception
See also:
getMessage(): string
getCode(): mixed
getFile(): string
getLine(): int
getTrace(): array
getPrevious(): ?\Throwable
See also:
\Throwable
getTraceAsString(): string
updateTLTrace(array $trace): void
Update TL trace.
Parameters:
$trace
:array
getTLTrace(): string
Get TL trace.
setTLTrace(string $tlTrace): void
Set TL trace.
Parameters:
$tlTrace
:string
TL trace
prettifyTL(string $init = '', array $trace = NULL): void
Generate async trace.
Parameters:
$init
:string
Method name$trace
:array
Async trace
Generated by danog/phpdoc