Created
May 19, 2020 21:47
-
-
Save sasssass/5b4b481ce62bd6da8acb632f5ca8d869 to your computer and use it in GitHub Desktop.
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
interface RemoteErrorEmitter { | |
fun onError(msg: String) | |
fun onError(errorType: ErrorType) | |
} | |
enum class ErrorType { | |
NETWORK, // IO | |
TIMEOUT, // Socket | |
UNKNOWN //Anything else | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment