Exception: Apimaster::RelationExistsError

Inherits:
NormalError
  • Object
show all
Defined in:
lib/apimaster/error.rb

Instance Attribute Summary

Attributes inherited from NormalError

#code, #error, #field, #resource

Instance Method Summary collapse

Constructor Details

#initialize(resource = nil, field = nil) ⇒ RelationExistsError

Returns a new instance of RelationExistsError.



50
51
52
# File 'lib/apimaster/error.rb', line 50

def initialize(resource = nil, field = nil)
  super("Our results indicate a positive relationship exists.", 409, :relation_exists, resource, field)
end