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.



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

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.



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

def invalid_property_names
  @invalid_property_names
end

Instance Method Details

#messageObject



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

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