Sha256: 7421409eefcdc580fe7ac0d8a628443127b2867bde54a0d48def87ad9402d7aa

Contents?: true

Size: 344 Bytes

Versions: 10

Compression:

Stored size: 344 Bytes

Contents

module Lutaml
  module Model
    class PatternNotMatchedError < Error
      def initialize(attr_name, pattern, value)
        @attr_name = attr_name
        @pattern = pattern
        @value = value

        super()
      end

      def to_s
        "#{@attr_name}: \"#{@value}\" does not match #{@pattern.inspect}"
      end
    end
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
lutaml-model-0.5.3 lib/lutaml/model/error/pattern_not_matched_error.rb
lutaml-model-0.5.2 lib/lutaml/model/error/pattern_not_matched_error.rb
lutaml-model-0.5.1 lib/lutaml/model/error/pattern_not_matched_error.rb
lutaml-model-0.5.0 lib/lutaml/model/error/pattern_not_matched_error.rb
lutaml-model-0.4.0 lib/lutaml/model/error/pattern_not_matched_error.rb
lutaml-model-0.3.30 lib/lutaml/model/error/pattern_not_matched_error.rb
lutaml-model-0.3.29 lib/lutaml/model/error/pattern_not_matched_error.rb
lutaml-model-0.3.28 lib/lutaml/model/error/pattern_not_matched_error.rb
lutaml-model-0.3.27 lib/lutaml/model/error/pattern_not_matched_error.rb
lutaml-model-0.3.26 lib/lutaml/model/error/pattern_not_matched_error.rb