Exception: Safer::Protocol::Error::ClassError

Inherits:
Safer::Protocol::Error show all
Defined in:
lib/safer/protocol.rb

Overview

Error generated when a Class object does not conform to a desired protocol.

Instance Method Summary collapse

Methods inherited from Safer::Protocol::Error

#==, #self

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