Class: Syskit::PropertyUpdateError

Inherits:
Roby::CodeError
  • Object
show all
Defined in:
lib/syskit/exceptions.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(error, property) ⇒ PropertyUpdateError

Returns a new instance of PropertyUpdateError



991
992
993
994
# File 'lib/syskit/exceptions.rb', line 991

def initialize(error, property)
    @property = property
    super(error, property.task_context)
end

Instance Attribute Details

#propertyObject (readonly)

Returns the value of attribute property



989
990
991
# File 'lib/syskit/exceptions.rb', line 989

def property
  @property
end

Instance Method Details

#pretty_print(pp) ⇒ Object



996
997
998
999
# File 'lib/syskit/exceptions.rb', line 996

def pretty_print(pp)
    pp.text "#{self.class.name}: updating property #{property.name} failed with"
    failure_point.pretty_print(pp)
end