Exception: Safer::Protocol::Error::InstanceError
- Inherits:
-
Safer::Protocol::Error
- Object
- StandardError
- Safer::Protocol::Error
- Safer::Protocol::Error::InstanceError
- Defined in:
- lib/safer/protocol.rb
Overview
Error generated when an instance object does not conform to a desired protocol.
Instance Method Summary collapse
-
#initialize(error_object, protocol, class_violations, instance_violations) ⇒ InstanceError
constructor
Create a Safer::Protocol::Error::InstanceError object.
Methods inherited from Safer::Protocol::Error
Constructor Details
#initialize(error_object, protocol, class_violations, instance_violations) ⇒ InstanceError
Create a Safer::Protocol::Error::InstanceError object.
324 325 326 327 328 329 |
# File 'lib/safer/protocol.rb', line 324 def initialize(error_object, protocol, class_violations, instance_violations) super( "Instance of #{error_object.class} does not implement protocol" + "#{protocol.name}.", error_object, protocol, class_violations, instance_violations) end |