Exception: SBSM::InvalidDataError
- Inherits:
-
RuntimeError
- Object
- RuntimeError
- SBSM::InvalidDataError
- Defined in:
- lib/sbsm/validator.rb
Instance Attribute Summary collapse
-
#key ⇒ Object
readonly
Returns the value of attribute key.
-
#value ⇒ Object
(also: #data)
readonly
Returns the value of attribute value.
Instance Method Summary collapse
-
#initialize(msg, key, value) ⇒ InvalidDataError
constructor
A new instance of InvalidDataError.
Constructor Details
#initialize(msg, key, value) ⇒ InvalidDataError
Returns a new instance of InvalidDataError.
38 39 40 41 42 |
# File 'lib/sbsm/validator.rb', line 38 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
#key ⇒ Object (readonly)
Returns the value of attribute key.
36 37 38 |
# File 'lib/sbsm/validator.rb', line 36 def key @key end |
#value ⇒ Object (readonly) Also known as: data
Returns the value of attribute value.
36 37 38 |
# File 'lib/sbsm/validator.rb', line 36 def value @value end |