PHP 8.4.0 RC3 available for testing

La classe ClosedGeneratorException

(PHP 5 >= 5.5.0, PHP 7, PHP 8)

Introduction

Une ClosedGeneratorException est lancée lorsqu'on essaie de récupérer une valeur d'un Generator fermé.

Synopsis de la classe

class ClosedGeneratorException extends Exception {
/* Propriétés héritées */
protected string $message = "";
private string $string = "";
protected int $code;
protected string $file = "";
protected int $line;
private array $trace = [];
private ?Throwable $previous = null;
/* Méthodes héritées */
public Exception::__construct(string $message = "", int $code = 0, ?Throwable $previous = null)
final public Exception::getCode(): int
final public Exception::getFile(): string
final public Exception::getLine(): int
final public Exception::getTrace(): array
}
add a note

User Contributed Notes

There are no user contributed notes for this page.
To Top