Skip to content

Instantly share code, notes, and snippets.

@hadilq
Created January 10, 2021 23:08
Show Gist options
  • Save hadilq/de13f834c553ee4f46e98e7a20d1930d to your computer and use it in GitHub Desktop.
Save hadilq/de13f834c553ee4f46e98e7a20d1930d to your computer and use it in GitHub Desktop.
Send DSL
send() elseIf {
IOFailure { error: IOException -> /* handle failure */ }
Timeout { error: TimeoutException -> /* handle failure */ }
UnAuthorized { error: UnAuthorizedException ->
/* handle failure */
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment