Skip to main content

Error Handling

  • Chapter
  • First Online:
Beginning Ballerina Programming

Abstract

When writing computer programs, sometimes your program does not execute with the behavior that you were expecting. This can be because of human errors, such as entering incorrect input, or because of environmental issues, such as network communication failures. It can even be because of issues with how the program logic was written. We call these scenarios generated in the program errors, and we call the act of anticipating these errors and taking appropriate actions error handling.

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

Access this chapter

eBook
USD 16.99
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 49.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

Author information

Authors and Affiliations

Authors

Rights and permissions

Reprints and permissions

Copyright information

© 2020 Anjana Fernando and Lakmal Warusawithana

About this chapter

Check for updates. Verify currency and authenticity via CrossMark

Cite this chapter

Fernando, A., Warusawithana, L. (2020). Error Handling. In: Beginning Ballerina Programming. Apress, Berkeley, CA. https://doi.org/10.1007/978-1-4842-5139-3_5

Download citation

Publish with us

Policies and ethics