Exception: Crm::Errors::ResourceNotFound
- Inherits:
-
ClientError
- Object
- StandardError
- BaseError
- ClientError
- Crm::Errors::ResourceNotFound
- Defined in:
- lib/crm/errors.rb
Overview
ResourceNotFound
is raised if the requested IDs could not be found.
Instance Attribute Summary collapse
-
#missing_ids ⇒ Array<String>
readonly
Returns the IDs that could not be found.
Instance Method Summary collapse
-
#initialize(message = nil, missing_ids = []) ⇒ ResourceNotFound
constructor
A new instance of ResourceNotFound.
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( = nil, missing_ids = []) super("#{} Missing IDs: #{missing_ids.to_sentence}") @missing_ids = missing_ids end |
Instance Attribute Details
#missing_ids ⇒ Array<String> (readonly)
Returns the IDs that could not be found.
51 52 53 |
# File 'lib/crm/errors.rb', line 51 def missing_ids @missing_ids end |