Skip to main content

Part of the book series: Lecture Notes in Computer Science ((LNPSE,volume 8339))

  • 618 Accesses

Abstract

This clause defines the facilities for dealing with errors or other exceptional situations that arise during program execution. An exception represents a kind of exceptional situation; an occurrence of such a situation (at run time) is called an exception occurrence. To raise an exception is to abandon normal program execution so as to draw attention to the fact that the corresponding situation has arisen. Performing some actions in response to the arising of an exception is called handling the exception.

An exception_declaration declares a name for an exception. An exception can be raised explicitly (for example, by a raise_statement) or implicitly (for example, by the failure of a language-defined check). When an exception arises, control can be transferred to a user-provided exception_handler at the end of a handled_sequence_of_statements, or it can be propagated to a dynamically enclosing execution.

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 119.00
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 159.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

Preview

Unable to display preview. Download preview PDF.

Unable to display preview. Download preview PDF.

Author information

Authors and Affiliations

Authors

Editor information

Editors and Affiliations

Rights and permissions

Reprints and permissions

Copyright information

© 2013 Authors/Editors

About this chapter

Cite this chapter

Tucker Taft, S., Duff, R.A., Brukardt, R.L., Ploedereder, E., Leroy, P., Schonberg, E. (2013). Exceptions. In: Taft, S.T., Duff, R.A., Brukardt, R.L., Ploedereder, E., Leroy, P., Schonberg, E. (eds) Ada 2012 Reference Manual. Language and Standard Libraries. Lecture Notes in Computer Science, vol 8339. Springer, Berlin, Heidelberg. https://doi.org/10.1007/978-3-642-45419-6_11

Download citation

  • DOI: https://doi.org/10.1007/978-3-642-45419-6_11

  • Publisher Name: Springer, Berlin, Heidelberg

  • Print ISBN: 978-3-642-45418-9

  • Online ISBN: 978-3-642-45419-6

  • eBook Packages: Computer ScienceComputer Science (R0)

Publish with us

Policies and ethics