MadelineProtoDocs/docs/PHPInternal/danog/MadelineProto/RPCErrorException.md
2020-10-15 19:11:10 +02:00

93 lines
1.5 KiB
Markdown

---
title: danog\MadelineProto\RPCErrorException: Indicates an error returned by Telegram's API.
description:
---
# `danog\MadelineProto\RPCErrorException`
[Back to index](../../index.md)
> Author: Daniil Gentili <daniil@daniil.it>
Indicates an error returned by Telegram's API.
## Method list:
* `getLocalization(): string`
* `setLocalization(string $localization): void`
* `updateTLTrace(array $trace): void`
* `getTLTrace(): string`
* `setTLTrace(string $tlTrace): void`
* `prettifyTL(string $init, array $trace): void`
## Methods:
### `getLocalization(): string`
Get localized error name.
---
Generated by [danog/phpdoc](https://phpdoc.daniil.it)
### `setLocalization(string $localization): void`
Set localized error name.
Parameters:
* `$localization`: `string`
---
Generated by [danog/phpdoc](https://phpdoc.daniil.it)
### `updateTLTrace(array $trace): void`
Update TL trace.
Parameters:
* `$trace`: `array`
---
Generated by [danog/phpdoc](https://phpdoc.daniil.it)
### `getTLTrace(): string`
Get TL trace.
---
Generated by [danog/phpdoc](https://phpdoc.daniil.it)
### `setTLTrace(string $tlTrace): void`
Set TL trace.
Parameters:
* `$tlTrace`: `string` TL trace
---
Generated by [danog/phpdoc](https://phpdoc.daniil.it)
### `prettifyTL(string $init, array $trace): void`
Generate async trace.
Parameters:
* `$init`: `string` Method name
* `$trace`: `array` Async trace
---
Generated by [danog/phpdoc](https://phpdoc.daniil.it)
---
Generated by [danog/phpdoc](https://phpdoc.daniil.it)