Exception: Xampl::IncompatiblePersisterRequest

Inherits:
Exception
  • Object
show all
Defined in:
lib/xamplr/exceptions.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(persister, feature_name, requested_feature_value, actual_feature_value) ⇒ IncompatiblePersisterRequest

Returns a new instance of IncompatiblePersisterRequest.



145
146
147
# File 'lib/xamplr/exceptions.rb', line 145

def initialize(persister, feature_name, requested_feature_value, actual_feature_value)
  @msg = "persister #{persister.name}:: requested feature: #{feature_name} #{requested_feature_value}, actual: #{actual_feature_value}"
end

Instance Attribute Details

#msgObject (readonly)

Returns the value of attribute msg.



143
144
145
# File 'lib/xamplr/exceptions.rb', line 143

def msg
  @msg
end

Instance Method Details

#messageObject



149
150
151
# File 'lib/xamplr/exceptions.rb', line 149

def message
  @msg
end