Then when you use it you can have like `val myErro...
# announcements
a
Then when you use it you can have like
val myError = if (result is T) t.error else null
or whatever your use case really is. I reccomend this for learning about Sealed Classes - https://robots.thoughtbot.com/android-networking-view-state