Exception: AnkiConnect::ProtocolError
- Defined in:
- lib/anki_connect/client.rb
Overview
Error raised when the response does not follow the AnkiConnect protocol.
Instance Attribute Summary collapse
-
#body ⇒ Object
readonly
Returns the value of attribute body.
Attributes inherited from Error
Instance Method Summary collapse
-
#initialize(message = nil, body:, **context) ⇒ ProtocolError
constructor
A new instance of ProtocolError.
Constructor Details
#initialize(message = nil, body:, **context) ⇒ ProtocolError
Returns a new instance of ProtocolError.
193 194 195 196 |
# File 'lib/anki_connect/client.rb', line 193 def initialize( = nil, body:, **context) @body = body super(, **context) end |
Instance Attribute Details
#body ⇒ Object (readonly)
Returns the value of attribute body.
191 192 193 |
# File 'lib/anki_connect/client.rb', line 191 def body @body end |