Skip to main content

Exceptionhandling – Ausnahmsweise

  • Chapter
  • First Online:
Programmierung in Python
  • 38k Accesses

Zusammenfassung

Ausnahmebehandlung ist ein mächtiger Mechanismus, um ein Programm in kritischen Situationen stabil zu halten oder gar von einem Beenden zu bewahren. Allerdings muss man sich im Klaren sein, dass ein Programmende oft die bessere Wahl ist, als wenn das Programm in einem unlogischen Zustand weiterläuft. Bei Ausnahmebehandlung gibt es neben dem rein syntaktischen Verständnis also die Notwendigkeit zu erkennen, ob und wie man diese Ausnahmebehandlung überhaupt sinnvoll durchführt.

This is a preview of subscription content, log in via an institution to check access.

Access this chapter

Chapter
USD 29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD 44.99
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

Notes

  1. 1.

    Deshalb taucht Ausnahmebehandlung auch erst nach dem Kapitel zur objektorientierten Programmierung auf.

  2. 2.

    In den meisten anderen Programmiersprachen mit Ausnahmebehandlung nutzt man dazu das Schlüsselwort catch .

Author information

Authors and Affiliations

Authors

Rights and permissions

Reprints and permissions

Copyright information

© 2018 Springer Fachmedien Wiesbaden GmbH, ein Teil von Springer Nature

About this chapter

Check for updates. Verify currency and authenticity via CrossMark

Cite this chapter

Steyer, R. (2018). Exceptionhandling – Ausnahmsweise. In: Programmierung in Python . Springer Vieweg, Wiesbaden. https://doi.org/10.1007/978-3-658-20705-2_12

Download citation

Publish with us

Policies and ethics