Exception: Audd::SerializationError

Inherits:
Error
  • Object
show all
Defined in:
lib/audd/errors.rb

Overview

A 2xx response whose body wasn't parseable JSON.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(message, raw_body: "") ⇒ SerializationError

Returns a new instance of SerializationError.



29
30
31
32
# File 'lib/audd/errors.rb', line 29

def initialize(message, raw_body: "")
  @raw_body = raw_body
  super(message)
end

Instance Attribute Details

#raw_bodyObject (readonly)

Returns the value of attribute raw_body.



27
28
29
# File 'lib/audd/errors.rb', line 27

def raw_body
  @raw_body
end