Exception: ConnectClient::EventDataValidationError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/connect_client/event.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(invalid_property_names) ⇒ EventDataValidationError

Returns a new instance of EventDataValidationError.



62
63
64
# File 'lib/connect_client/event.rb', line 62

def initialize(invalid_property_names)
  @invalid_property_names = invalid_property_names
end

Instance Attribute Details

#invalid_property_namesObject (readonly)

Returns the value of attribute invalid_property_names.



60
61
62
# File 'lib/connect_client/event.rb', line 60

def invalid_property_names
  @invalid_property_names
end

Instance Method Details

#messageObject



66
67
68
69
70
71
# File 'lib/connect_client/event.rb', line 66

def message
  messages = ['The following properties use the reserved prefix tp_:'] + @invalid_property_names.map do |property_name|
    "->#{property_name}"
  end
  messages.join "\n"
end