Exception: HasOffersV3::FieldError

Inherits:
APIError show all
Defined in:
lib/hasoffersv3/api_error.rb

Instance Attribute Summary

Attributes inherited from ResponseError

#response

Class Method Summary collapse

Methods inherited from APIError

from_response

Methods inherited from ResponseError

#initialize

Constructor Details

This class inherits a constructor from HasOffersV3::ResponseError

Class Method Details

.detect(response) ⇒ Object



37
38
39
# File 'lib/hasoffersv3/api_error.rb', line 37

def self.detect(response)
  response.error_messages.grep(/Field '.*' does not exist or is not allowed to be used./).first
end