Documentation

DisposeException extends Exception
in package

Thrown when a Disposable is disposed when awaiting on it.

For example, if consumeNextChat is called on a player, but the player quits without sending a message, this exception is thrown in the consumeNextChat yield.

Developers should ALWAYS handle this exception. Usually, this is handled by returning in thr catch block.

Table of Contents

$disposable  : object
__construct()  : mixed
getDisposable()  : object

Properties

Methods

__construct()

public __construct(Plugin $plugin, string $eventDescription, object $disposable) : mixed
Parameters
$plugin : Plugin
$eventDescription : string
$disposable : object
Return values
mixed

getDisposable()

public getDisposable() : object
Return values
object

Search results