Exception: Bobot::InvalidParameter
- Inherits:
-
ArgumentError
- Object
- ArgumentError
- Bobot::InvalidParameter
- Defined in:
- lib/bobot/exceptions.rb
Instance Method Summary collapse
-
#initialize(name, description = "") ⇒ InvalidParameter
constructor
A new instance of InvalidParameter.
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 |