class

Twirp::Error

Inherits Exception < Reference < Object

Implements all twirp errors as defined in https://twitchtv.github.io/twirp/docs/spec_v7.html.

Application code may raise such errors to trigger the appropriate error response.

Class methods

from_exception(ex : Exception) : Twirp::Error

Wrap an arbitrary exception as a twirp error (unless it's already one!)

Source
from_json(io)
Source

Instance methods

code
Source
status
Source
to_json(io)
Source

Nested types