Class: Lutaml::Model::TotalDigitsError
- Inherits:
-
RestrictionError
- Object
- Error
- RestrictionError
- Lutaml::Model::TotalDigitsError
- Defined in:
- lib/lutaml/model/error/total_digits_error.rb
Instance Method Summary collapse
-
#initialize(attr_name, value, total_digits) ⇒ TotalDigitsError
constructor
A new instance of TotalDigitsError.
- #to_s ⇒ Object
Constructor Details
#initialize(attr_name, value, total_digits) ⇒ TotalDigitsError
Returns a new instance of TotalDigitsError.
6 7 8 9 10 11 12 |
# File 'lib/lutaml/model/error/total_digits_error.rb', line 6 def initialize(attr_name, value, total_digits) @attr_name = attr_name @value = value @total_digits = total_digits super() end |
Instance Method Details
#to_s ⇒ Object
14 15 16 17 |
# File 'lib/lutaml/model/error/total_digits_error.rb', line 14 def to_s "#{@attr_name} (#{@value}) exceeds the maximum of " \ "#{@total_digits} total digits" end |