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.



65
66
67
# File 'lib/ads_common/errors.rb', line 65

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.



64
65
66
# File 'lib/ads_common/errors.rb', line 64

def object_type
  @object_type
end

#propertyObject (readonly)

Returns the value of attribute property.



64
65
66
# File 'lib/ads_common/errors.rb', line 64

def property
  @property
end

Instance Method Details

#to_sObject



68
69
70
# File 'lib/ads_common/errors.rb', line 68

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