Exception: ConvenientService::Service::Plugins::HasJSendResult::Entities::Result::Plugins::HasJSendStatusAndAttributes::Exceptions::NotExistingAttribute

Inherits:
Exception
  • Object
show all
Defined in:
lib/convenient_service/service/plugins/has_j_send_result/entities/result/plugins/has_j_send_status_and_attributes/exceptions.rb

Instance Method Summary collapse

Methods inherited from Exception

new

Instance Method Details

#initialize_with_kwargs(attribute:) ⇒ void

This method returns an undefined value.

Parameters:

  • attribute (Symbol)


17
18
19
20
21
22
23
# File 'lib/convenient_service/service/plugins/has_j_send_result/entities/result/plugins/has_j_send_status_and_attributes/exceptions.rb', line 17

def initialize_with_kwargs(attribute:)
  message = <<~TEXT
    Data attribute `#{attribute}` does NOT exist. Make sure the corresponding result returns it.
  TEXT

  initialize(message)
end