Exception: Safer::Protocol::Error::ClassError
- Inherits:
-
Safer::Protocol::Error
- Object
- StandardError
- Safer::Protocol::Error
- Safer::Protocol::Error::ClassError
- Defined in:
- lib/safer/protocol.rb
Overview
Error generated when a Class object does not conform to a desired protocol.
Instance Method Summary collapse
-
#initialize(error_object, protocol, class_violations, instance_violations) ⇒ ClassError
constructor
Create a Safer::Protocol::Error::ClassError object.
Methods inherited from Safer::Protocol::Error
Constructor Details
#initialize(error_object, protocol, class_violations, instance_violations) ⇒ ClassError
Create a Safer::Protocol::Error::ClassError object.
310 311 312 313 314 315 |
# File 'lib/safer/protocol.rb', line 310 def initialize(error_object, protocol, class_violations, instance_violations) super( "Class #{error_object} does not implement protocol" + "#{protocol.name}.", error_object, protocol, class_violations, instance_violations) end |