# danog\MadelineProto\RPCError\FloodWaitError: Represents a FLOOD_WAIT_ RPC error returned by telegram.

[Back to index](../../../index.html)

> Author: Daniil Gentili <daniil@daniil.it>  
  

Represents a FLOOD_WAIT_ RPC error returned by telegram.  



## Properties
* `$expires`: `positive-int` Indicates the absolute expiration time of the flood wait.
* `$waitTime`: `positive-int` 
* `$rpc`: `string` RPC error.
* `$description`: `string` Human-readable description of RPC error.
* `$tlTrace`: `string` TL trace.

## Method list:
* [`getWaitTime(): positive-int`](#getWaitTime)
* [`getWaitTimeLeft(): int<0, max>`](#getWaitTimeLeft)
* [`wait(?\Amp\Cancellation $cancellation = NULL): void`](#wait)
* [`getLocalization(): string`](#getLocalization)
* [`getTLTrace(): string`](#getTLTrace)
* [`getMessage(): string`](#getMessage)
* [`getCode()`](#getCode)
* [`getFile(): string`](#getFile)
* [`getLine(): int`](#getLine)
* [`getTrace(): array`](#getTrace)
* [`getPrevious(): ?Throwable`](#getPrevious)
* [`getTraceAsString(): string`](#getTraceAsString)

## Methods:
### <a name="getWaitTime"></a> `getWaitTime(): positive-int`

Returns the required waiting period in seconds before repeating the RPC call.


#### See also: 
* `positive-int`




### <a name="getWaitTimeLeft"></a> `getWaitTimeLeft(): int<0, max>`

Returns the remaining waiting period in seconds before repeating the RPC call.


#### See also: 
* `max`




### <a name="wait"></a> `wait(?\Amp\Cancellation $cancellation = NULL): void`

Waits for the remaining waiting period.


Parameters:

* `$cancellation`: `?\Amp\Cancellation`   


#### See also: 
* `\Amp\Cancellation`




### <a name="getLocalization"></a> `getLocalization(): string`

Get localized error name.



### <a name="getTLTrace"></a> `getTLTrace(): string`

Get TL trace.



### <a name="getMessage"></a> `getMessage(): string`





### <a name="getCode"></a> `getCode()`





### <a name="getFile"></a> `getFile(): string`





### <a name="getLine"></a> `getLine(): int`





### <a name="getTrace"></a> `getTrace(): array`





### <a name="getPrevious"></a> `getPrevious(): ?Throwable`




#### See also: 
* `Throwable`




### <a name="getTraceAsString"></a> `getTraceAsString(): string`





---
Generated by [danog/phpdoc](https://phpdoc.daniil.it)
