Class: Ector::Multi::UniqueOperationError

Inherits:
Error
  • Object
show all
Defined in:
lib/ector-multi/errors.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name) ⇒ UniqueOperationError

Returns a new instance of UniqueOperationError.



41
42
43
44
45
# File 'lib/ector-multi/errors.rb', line 41

def initialize(name)
  @name = name

  super("Operation name '#{name}' is not unique!")
end

Instance Attribute Details

#nameObject (readonly)

Returns the value of attribute name.



39
40
41
# File 'lib/ector-multi/errors.rb', line 39

def name
  @name
end