Exception: WSDL::SchemaImportError
- Defined in:
- lib/wsdl/errors.rb
Overview
Raised when an imported schema cannot be fetched or parsed.
This error wraps recoverable schema import failures (for example missing files, network timeouts, or malformed imported XSD documents).
When strictness.schema_imports is false, these errors are logged and skipped.
When true (default), they are raised.
Direct Known Subclasses
Instance Attribute Summary collapse
-
#action ⇒ String?
readonly
Import action (
importorinclude). -
#base_location ⇒ String?
readonly
Parent document location used as resolution base.
-
#location ⇒ String?
readonly
Schema location that failed.
Instance Method Summary collapse
-
#initialize(message = nil, location: nil, base_location: nil, action: nil) ⇒ SchemaImportError
constructor
Creates a new SchemaImportError.
Constructor Details
#initialize(message = nil, location: nil, base_location: nil, action: nil) ⇒ SchemaImportError
Creates a new SchemaImportError.
62 63 64 65 66 67 |
# File 'lib/wsdl/errors.rb', line 62 def initialize( = nil, location: nil, base_location: nil, action: nil) @location = location @base_location = base_location @action = action super() end |
Instance Attribute Details
#action ⇒ String? (readonly)
Returns import action (import or include).
54 55 56 |
# File 'lib/wsdl/errors.rb', line 54 def action @action end |
#base_location ⇒ String? (readonly)
Returns parent document location used as resolution base.
51 52 53 |
# File 'lib/wsdl/errors.rb', line 51 def base_location @base_location end |
#location ⇒ String? (readonly)
Returns schema location that failed.
48 49 50 |
# File 'lib/wsdl/errors.rb', line 48 def location @location end |