Skip to content

Instantly share code, notes, and snippets.

Created June 15, 2017 06:56
What would you like to do?
the description for this gist
sealed trait Error
case class ErrorA(message: String, details: DetailedErrorA) extends Error
case object ErrorB extends Error
case class DetailedErrorA(detailedMessage: String)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment