apps-script-utils (Deutsch) 2.1.1 Help

InvalidEmailFormatException

class InvalidEmailFormatException extends RuntimeException

Eine Zeichenkette sollte eine E-Mail-Adresse sein und hat nicht deren Form.

Wird geworfen von requireValidEmail.

Jede Klasse dieser Hierarchie nimmt eine optionale Meldung, eine andere Ausnahme, deren Meldung übernommen wird, oder gar nichts. isException erkennt sie alle; ein einfacher Error gehört nicht dazu.

Beispiele

Werfen und fangen

throw new InvalidEmailFormatException("something specific about this call"); try { doWork(); } catch (error) { if (error instanceof InvalidEmailFormatException) { // handled } }

Siehe auch

Quellcode

src/exception/InvalidEmailFormatException.ts

23 September 2026

Diese Dokumentation wurde mit KI (Claude) aus dem Quellcode der Bibliothek erzeugt.