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.



41
42
43
# File 'lib/connect_client/event.rb', line 41

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.



39
40
41
# File 'lib/connect_client/event.rb', line 39

def invalid_property_names
  @invalid_property_names
end

Instance Method Details

#messageObject



45
46
47
48
49
50
# File 'lib/connect_client/event.rb', line 45

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