Sie befinden Sich nicht im Netzwerk der Universität Paderborn. Der Zugriff auf elektronische Ressourcen ist gegebenenfalls nur via VPN oder Shibboleth (DFN-AAI) möglich. mehr Informationen...
23 - Exceptions
Annotated C# Standard, 2007, p.612-616
2007

Details

Autor(en) / Beteiligte
Titel
23 - Exceptions
Ist Teil von
  • Annotated C# Standard, 2007, p.612-616
Ort / Verlag
Elsevier Inc
Erscheinungsjahr
2007
Link zum Volltext
Beschreibungen/Notizen
  • The exception mechanism in C# is quite similar to that of C++, with a few important differences outlined in this chapter. Exceptions in C# provide a structured, uniform, and type-safe way of handling both system-level and application-level error conditions. Throwing an exception is comparatively very slow—maybe 20,000 cpu cycles—on Microsoft's current CLR, and much slower than in most Standard ML implementations. When an exception is thrown on the CLI, a stack trace gets incorporated into the exception object. This suggests that one of the expected uses of exceptions is to assist debugging, in addition to their normal use to handle exceptional situations during normal program execution. In Java the stack trace gets incorporated when the exception object is created. This allows an optimization in Java when the stack trace is known to be ignored. Furthermore, this chapter discusses the methods by which exceptions are thrown, their causes, and how they are handled.
Sprache
Englisch
Identifikatoren
ISBN: 9780123725110, 0123725119
DOI: 10.1016/B978-012372511-0.50029-1
Titel-ID: cdi_elsevier_sciencedirect_doi_10_1016_B978_012372511_0_50029_1
Format

Weiterführende Literatur

Empfehlungen zum selben Thema automatisch vorgeschlagen von bX