Skip to Main Content
Mastering Functional Programming
book

Mastering Functional Programming

by Anatolii Kmetiuk
August 2018
Intermediate to advanced content levelIntermediate to advanced
380 pages
10h 2m
English
Packt Publishing
Content preview from Mastering Functional Programming

The side effect of errors

In the preceding example, we saw that thing do not always go smoothly. Things can go wrong on multiple levels. So when we connect to the cloud authentication service, the connection itself may go wrong. For example, the server reply times out. Or, your application credentials are wrong and you do not end up accessing the feature of the cloud authentication service that you would like to access.

When contacting the database, things can also go wrong. For example, you may fail to establish a connection with the database. Or, for some reason, the data is not present in the database or is not in the correct format.

Finally, the business logic of the application allows for an error. This one happens when the person making ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Learning Functional Programming

Learning Functional Programming

Jack Widman
Functional Programming in Scala

Functional Programming in Scala

Runar Bjarnason, Paul Chiusano

Publisher Resources

ISBN: 9781788620796Supplemental Content