Slink.API.Error exception (Slink v0.6.0)

Copy Markdown View Source

Raised by Slink.API.stream/3 when a page fetch fails mid-stream.

A lazy Stream has no way to return {:error, reason}, so failures raise instead. reason is what Slink.API.call/3 would have returned in the error tuple (Slack's error string, or a transport error).