Exception: JRPC::Errors::MalformedResponseError

Inherits:
ServerError show all
Defined in:
lib/jrpc/errors.rb

Overview

Raised locally when a frame is unparseable or violates the envelope rules, so it never corresponds to a peer error object: no code, no data.

Instance Attribute Summary

Attributes inherited from ServerError

#code, #data

Instance Method Summary collapse

Constructor Details

#initialize(message) ⇒ MalformedResponseError

Returns a new instance of MalformedResponseError.



31
32
33
# File 'lib/jrpc/errors.rb', line 31

def initialize(message)
  super(message, code: nil)
end