Exception: Lutaml::Model::Type::MaxLengthError
- Defined in:
- lib/lutaml/model/error/type/max_length_error.rb
Instance Method Summary collapse
-
#initialize(value, max_length) ⇒ MaxLengthError
constructor
A new instance of MaxLengthError.
- #to_s ⇒ Object
Constructor Details
#initialize(value, max_length) ⇒ MaxLengthError
Returns a new instance of MaxLengthError.
7 8 9 10 11 12 |
# File 'lib/lutaml/model/error/type/max_length_error.rb', line 7 def initialize(value, max_length) @value = value @max_length = max_length super() end |
Instance Method Details
#to_s ⇒ Object
14 15 16 |
# File 'lib/lutaml/model/error/type/max_length_error.rb', line 14 def to_s "String \"#{@value}\" length (#{@value.length}) is greater than the maximum allowed length #{@max_length}" end |