Created
May 21, 2018 09:06
-
-
Save robhinds/e5fbe52f32e25140373bfa5c55b73f01 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
object ApiResponse { | |
def failure[T](e :Exception): ApiResponse[T] = Left(e) | |
def success[T](t: T): ApiResponse[T] = Right(t) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment