Exception: SBSM::InvalidDataError

Inherits:
RuntimeError
  • Object
show all
Defined in:
lib/sbsm/validator.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(msg, key, value) ⇒ InvalidDataError

Returns a new instance of InvalidDataError.



40
41
42
43
44
# File 'lib/sbsm/validator.rb', line 40

def initialize(msg, key, value)
	super("#{msg.to_s} #{key.to_s[0..79]} #{value.to_s[0..79]}")
	@key = key
	@value = value
end

Instance Attribute Details

#keyObject (readonly)

Returns the value of attribute key.



38
39
40
# File 'lib/sbsm/validator.rb', line 38

def key
  @key
end

#valueObject (readonly) Also known as: data

Returns the value of attribute value.



38
39
40
# File 'lib/sbsm/validator.rb', line 38

def value
  @value
end