class Served::Resource::ResponseInvalid
Public Class Methods
new(resource, original_error = false)
click to toggle source
Calls superclass method
# File lib/served/resource/response_invalid.rb, line 4 def initialize(resource, original_error = false) if original_error super "The resource '#{resource.name}' failed to serialize the " \ "response with message: #{original_error.message}'" return end super "The resource '#{resource.name}' returned a response, but the result " \ "of serialization was `nil`" end