Skip to content

Instantly share code, notes, and snippets.

@hadilq
Created January 10, 2021 23:08
Show Gist options
  • Select an option

  • Save hadilq/de13f834c553ee4f46e98e7a20d1930d to your computer and use it in GitHub Desktop.

Select an option

Save hadilq/de13f834c553ee4f46e98e7a20d1930d to your computer and use it in GitHub Desktop.

Revisions

  1. hadilq created this gist Jan 10, 2021.
    7 changes: 7 additions & 0 deletions SendDSL.kt
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,7 @@
    send() elseIf {
    IOFailure { error: IOException -> /* handle failure */ }
    Timeout { error: TimeoutException -> /* handle failure */ }
    UnAuthorized { error: UnAuthorizedException ->
    /* handle failure */
    }
    }