Exception: Konfa::RSpec::BadValueError
- Inherits:
-
StandardError
- Object
- StandardError
- Konfa::RSpec::BadValueError
- Defined in:
- lib/konfa/rspec.rb
Instance Method Summary collapse
-
#initialize(msg) ⇒ BadValueError
constructor
A new instance of BadValueError.
- #to_s ⇒ Object
Constructor Details
#initialize(msg) ⇒ BadValueError
Returns a new instance of BadValueError.
29 30 31 |
# File 'lib/konfa/rspec.rb', line 29 def initialize(msg) @type = msg.class.name end |
Instance Method Details
#to_s ⇒ Object
33 34 35 |
# File 'lib/konfa/rspec.rb', line 33 def to_s "Konfa requires values to be of type String (or NilClass), you passed #{@type}" end |