• Skip to primary navigation
  • Skip to content
  • Skip to primary sidebar

CASTER.IO

Upgrade Your Career with Bite Sized Video Training

  • Articles

Craig Russell

Handling Optional Errors using Kotlin Sealed Classes

Craig Russell
Posted: May 21, 2018 • Leave a Comment

Large seal. Or more likely a sea lion.

When calling a function which returns data, there is often the need to handle errors which might occur. This post details how to make use of Kotlin’s sealed classes to return one object which can represent the data you expected or an error. Let’s …

Continue Reading

Primary Sidebar

Recent Posts

  • Caster.IO Has Shut Down
  • Caster.IO is Shutting Down
  • Building Objects with Kotlin
  • Rxify: Error Handling with Subjects (Relays)
  • Self Destructing Smart Contracts in Ethereum

Search Articles

Copyright © 2021 · Maker Pro on Genesis Framework · WordPress · Log in