Exception: ConnectClient::EventDataValidationError
- Inherits:
-
StandardError
- Object
- StandardError
- ConnectClient::EventDataValidationError
- Defined in:
- lib/connect_client/event.rb
Instance Attribute Summary collapse
-
#invalid_property_names ⇒ Object
readonly
Returns the value of attribute invalid_property_names.
Instance Method Summary collapse
-
#initialize(invalid_property_names) ⇒ EventDataValidationError
constructor
A new instance of EventDataValidationError.
- #message ⇒ Object
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_names ⇒ Object (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
#message ⇒ Object
67 68 69 70 71 72 |
# File 'lib/connect_client/event.rb', line 67 def = ['The following properties use the reserved prefix tp_:'] + @invalid_property_names.map do |property_name| "->#{property_name}" end .join "\n" end |