class FunWithJsonApi::Exceptions::UnknownRelationship

Indicates a supplied relationship value is unknown to the current deserializer

Public Class Methods

new(message, payload = ExceptionPayload.new) click to toggle source
Calls superclass method FunWithJsonApi::Exception::new
# File lib/fun_with_json_api/exceptions/unknown_relationship.rb, line 5
def initialize(message, payload = ExceptionPayload.new)
  payload = Array.wrap(payload).each do |unknown|
    unknown.code ||= 'unknown_relationship'
    unknown.title ||= I18n.t(:unknown_relationship, scope: 'fun_with_json_api.exceptions')
    unknown.status ||= '400'
  end
  super
end