Exception: Protobug::InvalidValueError

Inherits:
Error
  • Object
show all
Defined in:
lib/protobug/errors.rb

Instance Method Summary collapse

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, message = "")
  super("invalid value for #{field.name} (#{field.number}, #{field.inspect}) of #{msg.class.full_name}: " \
        "#{value.inspect}#{" (#{message})" if message}")
end