Exception: Lutaml::Model::Type::MinLengthError

Inherits:
Error
  • Object
show all
Defined in:
lib/lutaml/model/error/type/min_length_error.rb

Instance Method Summary collapse

Constructor Details

#initialize(value, min_length) ⇒ MinLengthError

Returns a new instance of MinLengthError.



7
8
9
10
11
12
# File 'lib/lutaml/model/error/type/min_length_error.rb', line 7

def initialize(value, min_length)
  @value = value
  @min_length = min_length

  super()
end

Instance Method Details

#to_sObject



14
15
16
# File 'lib/lutaml/model/error/type/min_length_error.rb', line 14

def to_s
  "String \"#{@value}\" length (#{@value.length}) is less than the minimum required length #{@min_length}"
end