Exception: Crm::Errors::ResourceNotFound

Inherits:
ClientError show all
Defined in:
lib/crm/errors.rb

Overview

ResourceNotFound is raised if the requested IDs could not be found.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(message = nil, missing_ids = []) ⇒ ResourceNotFound

Returns a new instance of ResourceNotFound.



53
54
55
56
57
# File 'lib/crm/errors.rb', line 53

def initialize(message = nil, missing_ids = [])
  super("#{message} Missing IDs: #{missing_ids.to_sentence}")

  @missing_ids = missing_ids
end

Instance Attribute Details

#missing_idsArray<String> (readonly)

Returns the IDs that could not be found.

Examples:

["9762b2b4382f6bf34adbdeb21ce588aa"]

Returns:

  • (Array<String>)


51
52
53
# File 'lib/crm/errors.rb', line 51

def missing_ids
  @missing_ids
end