Class: Lutaml::Model::MaxExclusiveError
- Inherits:
-
RestrictionError
- Object
- Error
- RestrictionError
- Lutaml::Model::MaxExclusiveError
- Defined in:
- lib/lutaml/model/error/max_exclusive_error.rb
Instance Method Summary collapse
-
#initialize(attr_name, value, max) ⇒ MaxExclusiveError
constructor
A new instance of MaxExclusiveError.
- #to_s ⇒ Object
Constructor Details
#initialize(attr_name, value, max) ⇒ MaxExclusiveError
Returns a new instance of MaxExclusiveError.
6 7 8 9 10 11 12 |
# File 'lib/lutaml/model/error/max_exclusive_error.rb', line 6 def initialize(attr_name, value, max) @attr_name = attr_name @value = value @max = max super() end |
Instance Method Details
#to_s ⇒ Object
14 15 16 |
# File 'lib/lutaml/model/error/max_exclusive_error.rb', line 14 def to_s "#{@attr_name} is `#{@value}`, must be less than #{@max}" end |