Link Search Menu Expand Document

danog\MadelineProto\Exception

Back to index

Author: Daniil Gentili daniil@daniil.it

Basic exception.

Properties

  • $tlTrace: string TL trace.

Method list:

Methods:

__construct(mixed $message = NULL, mixed $code = 0, ?\Throwable $previous = NULL, mixed $file = NULL, mixed $line = NULL)

Parameters:

  • $message: mixed
  • $code: mixed
  • $previous: ?\Throwable
  • $file: mixed
  • $line: mixed

See also:

  • \Throwable

extension(string $extensionName): self

Complain about missing extensions.

Parameters:

  • $extensionName: string Extension name

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