Exception: Protobug::InvalidValueError
- Defined in:
- lib/protobug/errors.rb
Instance Method Summary collapse
-
#initialize(msg, field, value, message = "") ⇒ InvalidValueError
constructor
A new instance of InvalidValueError.
Constructor Details
#initialize(msg, field, value, message = "") ⇒ InvalidValueError
Returns a new instance of InvalidValueError.
27 28 29 30 |
# File 'lib/protobug/errors.rb', line 27 def initialize(msg, field, value, = "") super("invalid value for #{field.name} (#{field.number}, #{field.inspect}) of #{msg.class.full_name}: " \ "#{value.inspect}#{" (#{})" if }") end |