RoachFeed.Error exception (roachfeed v0.0.7)

Represents an error.

The source field is :cockroachdb when the error was returned by the server. In such cases the code field should be the integer code returned (though it could be nil in the unlikely case that the error couldn't be parsed properly).

Otherwise the source field can be either :tcp or :driver to indicate a tcp-level error or an error arising from this library. In both cases, code will be nil.

The message field contains a human readable description of the problem. It is always present. It's usually a string, except when source is :tcp it will be an atom.

The details field can contain anything, including nil.

Link to this section Summary

Functions

Turns an RoachFeed.Error into a binary for display

Link to this section Functions

Link to this function

message(exception)

Turns an RoachFeed.Error into a binary for display