Last active
May 3, 2020 09:59
-
-
Save supermanue/2856749b38f6f8dcaddc989f8f0289a2 to your computer and use it in GitHub Desktop.
refined_7
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sealed trait BusinessLogicError {val msg: String} | |
case class NonExistingSchema(name: String, namespace: String) extends BusinessLogicError { | |
override val msg: String = s"schema with name $name and namespace $namespace does not exist" | |
} | |
case class StorageError(schema: Schema) extends BusinessLogicError { | |
override val msg: String = s"schema ${schema.toString} could not be stored for whatever reason" | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment