Exception: XML_XSI::Schema::LocationError
- Inherits:
-
StandardError
- Object
- StandardError
- XML_XSI::Schema::LocationError
- Defined in:
- lib/validate_xml_xsi.rb
Instance Attribute Summary collapse
-
#ns_href ⇒ Object
readonly
Returns the value of attribute ns_href.
Instance Method Summary collapse
-
#initialize(ns_href = nil) ⇒ LocationError
constructor
A new instance of LocationError.
Constructor Details
#initialize(ns_href = nil) ⇒ LocationError
Returns a new instance of LocationError.
63 64 65 66 67 68 69 |
# File 'lib/validate_xml_xsi.rb', line 63 def initialize(ns_href = nil) @ns_href = ns_href msg = ns_href.nil? ? "No schema locations defined or provided" : "No location for the default (xmlns) namespace schema: #{ns_href}" super(msg) end |
Instance Attribute Details
#ns_href ⇒ Object (readonly)
Returns the value of attribute ns_href.
62 63 64 |
# File 'lib/validate_xml_xsi.rb', line 62 def ns_href @ns_href end |