Exception: Lutaml::Xsd::SchemaNotFoundError

Inherits:
Error
  • Object
show all
Defined in:
lib/lutaml/xsd/errors.rb

Overview

Schema not found with helpful context

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(location:, searched_paths: [], suggestions: []) ⇒ SchemaNotFoundError

Returns a new instance of SchemaNotFoundError.



12
13
14
15
16
17
18
19
# File 'lib/lutaml/xsd/errors.rb', line 12

def initialize(location:, searched_paths: [], suggestions: [])
  @location = location
  @searched_paths = searched_paths
  @suggestions = suggestions

  message = build_message
  super(message)
end

Instance Attribute Details

#locationObject (readonly)

Returns the value of attribute location.



10
11
12
# File 'lib/lutaml/xsd/errors.rb', line 10

def location
  @location
end

#searched_pathsObject (readonly)

Returns the value of attribute searched_paths.



10
11
12
# File 'lib/lutaml/xsd/errors.rb', line 10

def searched_paths
  @searched_paths
end

#suggestionsObject (readonly)

Returns the value of attribute suggestions.



10
11
12
# File 'lib/lutaml/xsd/errors.rb', line 10

def suggestions
  @suggestions
end