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.



53
54
55
56
# File 'lib/warp/dir/errors.rb', line 53

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