Start · Sprachen · PHP · Referenz · UnderflowException

UnderflowException

Klasse

Container leer — kein Element mehr entnehmbar.

seit PHP 5.1.0 Kategorie: error

Signatur

class UnderflowException extends RuntimeException

Beschreibung

Bei Stack/Queue-Pop auf leerer Struktur.

Rückgabewert

Typ
UnderflowException
Beschreibung
Instanz.

Beispiele

Empty Stack

<?php

if ($this->count() === 0) throw new UnderflowException('Stack leer');