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.



87
88
89
# File 'lib/xamplr/exceptions.rb', line 87

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.



85
86
87
# File 'lib/xamplr/exceptions.rb', line 85

def msg
  @msg
end

Instance Method Details

#messageObject



91
92
93
# File 'lib/xamplr/exceptions.rb', line 91

def message
  @msg
end