Exception: AdsCommon::Errors::MissingPropertyError

Inherits:
Error
  • Object
show all
Defined in:
lib/ads_common/errors.rb

Overview

Raised if a required property on an object is missing.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(property, object_type) ⇒ MissingPropertyError

Returns a new instance of MissingPropertyError.



54
55
56
# File 'lib/ads_common/errors.rb', line 54

def initialize(property, object_type)
  @property, @object_type = property, object_type
end

Instance Attribute Details

#object_typeObject (readonly)

Returns the value of attribute object_type.



53
54
55
# File 'lib/ads_common/errors.rb', line 53

def object_type
  @object_type
end

#propertyObject (readonly)

Returns the value of attribute property.



53
54
55
# File 'lib/ads_common/errors.rb', line 53

def property
  @property
end

Instance Method Details

#to_sObject



57
58
59
# File 'lib/ads_common/errors.rb', line 57

def to_s()
  return "%s: name: %s, type: %s" % [super, @property, @object_type]
end