Skip to content

Instantly share code, notes, and snippets.

Created June 15, 2017 06:56
Show Gist options
  • Save anonymous/35dc9f43520c9feed9045421eecc8c9b to your computer and use it in GitHub Desktop.
Save anonymous/35dc9f43520c9feed9045421eecc8c9b to your computer and use it in GitHub Desktop.
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