Exception: ShareWith::InvalidValue

Inherits:
StandardError
  • Object
show all
Defined in:
lib/share_with/utils.rb

Overview

Invalid value error.

Instance Method Summary collapse

Constructor Details

#initialize(args) ⇒ InvalidValue

Returns a new instance of InvalidValue.



66
67
68
# File 'lib/share_with/utils.rb', line 66

def initialize(args)
  super "Invalid value: #{args[0]}, the allowed values are: #{args[1].join(", ")}"
end