Exception: Omnibus::InvalidValue
- Defined in:
- lib/omnibus/exceptions.rb
Instance Method Summary collapse
-
#initialize(source, message) ⇒ InvalidValue
constructor
A new instance of InvalidValue.
- #to_s ⇒ Object
Constructor Details
#initialize(source, message) ⇒ InvalidValue
Returns a new instance of InvalidValue.
163 164 165 166 |
# File 'lib/omnibus/exceptions.rb', line 163 def initialize(source, ) @source = source @message = end |
Instance Method Details
#to_s ⇒ Object
168 169 170 171 172 |
# File 'lib/omnibus/exceptions.rb', line 168 def to_s <<~EOH Invalid value for `#{@source}'. Expected #{@source} to #{@message}! EOH end |