Exception: Bobot::InvalidParameter

Inherits:
ArgumentError
  • Object
show all
Defined in:
lib/bobot/exceptions.rb

Instance Method Summary collapse

Constructor Details

#initialize(name, description = "") ⇒ InvalidParameter

Returns a new instance of InvalidParameter.



6
7
8
# File 'lib/bobot/exceptions.rb', line 6

def initialize(name, description = "")
  super("invalid value of parameter #{name}#{description.present? ? ": '#{description}'" : ''}")
end