Exception: Warp::Dir::Errors::PointAlreadyExists

Inherits:
InstanceError show all
Defined in:
lib/warp/dir/errors.rb

Instance Attribute Summary

Attributes inherited from InstanceError

#instance

Instance Method Summary collapse

Methods inherited from InstanceError

#color_error, #name

Constructor Details

#initialize(point) ⇒ PointAlreadyExists

Returns a new instance of PointAlreadyExists.



56
57
58
59
# File 'lib/warp/dir/errors.rb', line 56

def initialize(point)
  self.instance = point
  super color_error('Point ', point.to_s, ' already exists. Pass --force to overwrite.')
end