Error

(PHP 7, PHP 8)

Einführung

Error is the base class for all internal PHP errors.

Klassenbeschreibung

class Error implements Throwable {
/* Eigenschaften */
protected string $message = "";
private string $string = "";
protected int $code;
protected string $file = "";
protected int $line;
private array $trace = [];
private ?Throwable $previous = null;
/* Methoden */
public __construct(string $message = "", int $code = 0, ?Throwable $previous = null)
final public getMessage(): string
final public getPrevious(): ?Throwable
final public getCode(): int
final public getFile(): string
final public getLine(): int
final public getTrace(): array
final public getTraceAsString(): string
public __toString(): string
private __clone(): void
}

Eigenschaften

message

The error message

code

The error code

file

The filename where the error happened

line

The line where the error happened

previous

The previously thrown exception

string

The string representation of the stack trace

trace

The stack trace as an array

Inhaltsverzeichnis

Hier Kannst Du einen Kommentar verfassen


Bitte gib mindestens 10 Zeichen ein.
Wird geladen... Bitte warte.
* Pflichtangabe
Es sind noch keine Kommentare vorhanden.

Was genau bedeutet "Vibe Coding"? Ein tiefgehender Blick für Entwickler

In der Welt der Softwareentwicklung gibt es unzählige Wege, wie man an ein Projekt herangeht. Manche schwören auf strikte Planung, andere auf bewährte Algorithmen und wieder andere lassen sich von etwas ganz anderem leiten: ihrem Gefühl. ...

admin

Autor : admin
Kategorie: Software & Web-Development

PHP cURL-Tutorial: Verwendung von cURL zum Durchführen von HTTP-Anfragen

cURL ist eine leistungsstarke PHP-Erweiterung, die es Ihnen ermöglicht, mit verschiedenen Servern über verschiedene Protokolle wie HTTP, HTTPS, FTP und mehr zu kommunizieren. ...

TheMax

Autor : TheMax
Kategorie: PHP-Tutorials

Midjourney Tutorial - Anleitung für Anfänger

Über Midjourney, dem Tool zur Erstellung digitaler Bilder mithilfe von künstlicher Intelligenz, gibt es ein informatives Video mit dem Titel "Midjourney Tutorial auf Deutsch - Anleitung für Anfänger" ...

Mike94

Autor : Mike94
Kategorie: KI Tutorials

Tutorial veröffentlichen

Tutorial veröffentlichen

Teile Dein Wissen mit anderen Entwicklern weltweit

Du bist Profi in deinem Bereich und möchtest dein Wissen teilen, dann melde dich jetzt an und teile es mit unserer PHP-Community

mehr erfahren

Tutorial veröffentlichen

Mongo Datenbank und Tabellendaten in sehr großer Menge...Wer kennt sich aus?

That’s definitely a huge amount of data to handle, and I get why it feels overwhelming. Optimizing imports and filtering only the useful 20% bef ...

Geschrieben von hendyercel am 26.08.2025 12:07:04
Forum: PHP Developer Forum
`count.php`

Nice work, Sebastian! The script looks really practical, especially since it’s lightweight and open source. I think people who enjoy testing new ...

Geschrieben von hendyercel am 26.08.2025 12:02:38
Forum: Projekthilfe
`count.php`

Nice work, Sebastian! The script looks really practical, especially since it’s lightweight and open source. I think people who enjoy testing new ...

Geschrieben von hendyercel am 26.08.2025 11:59:38
Forum: Projekthilfe
รีวิวหัวพอต relx ที่คุณไม่ควรพลาด

ในยุคที่คนรุ่นใหม่หันมาเลือกใช้ พอตไฟฟ้า กันมากขึ้ ...

Geschrieben von ahr147 am 26.08.2025 09:18:48
Forum: PHP Developer Forum