Link Search Menu Expand Document

danog\MadelineProto\RPCError\UsernameNotOccupiedError

Back to index

Author: Daniil Gentili daniil@daniil.it

The provided username is not occupied.

Note: this exception is part of the raw API, and thus is not covered by the backwards-compatibility promise.

Always check the changelog when upgrading, and use tools like Psalm to easily upgrade your code.

Properties

  • $rpc: string RPC error.
  • $description: string Human-readable description of RPC error.
  • $tlTrace: string TL trace.

Method list:

Methods:

getLocalization(): string

Get localized error name.

getMessage(): string

getCode()

getFile(): string

getLine(): int

getTrace(): array

getPrevious(): ?Throwable

See also:

  • Throwable

getTraceAsString(): string

getTLTrace(): string

Get TL trace.


Generated by danog/phpdoc