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).
In strict_schema: false mode these errors are logged and skipped.
In strict_schema: true mode 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.
60 61 62 63 64 65 |
# File 'lib/wsdl/errors.rb', line 60 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).
52 53 54 |
# File 'lib/wsdl/errors.rb', line 52 def action @action end |
#base_location ⇒ String? (readonly)
Returns parent document location used as resolution base.
49 50 51 |
# File 'lib/wsdl/errors.rb', line 49 def base_location @base_location end |
#location ⇒ String? (readonly)
Returns schema location that failed.
46 47 48 |
# File 'lib/wsdl/errors.rb', line 46 def location @location end |