Exception: WSDL::DuplicateDefinitionError
- Defined in:
- lib/wsdl/errors.rb
Overview
Raised when duplicate WSDL definitions share the same key.
This error is raised when two imported documents define the same component (for example, message/binding/portType) with an identical key.
Instance Attribute Summary collapse
-
#component_type ⇒ Symbol?
readonly
Component type (:message, :port_type, :binding, :service).
-
#definition_key ⇒ String?
readonly
Duplicate definition key.
Instance Method Summary collapse
-
#initialize(message = nil, component_type: nil, definition_key: nil) ⇒ DuplicateDefinitionError
constructor
Creates a new DuplicateDefinitionError.
Constructor Details
#initialize(message = nil, component_type: nil, definition_key: nil) ⇒ DuplicateDefinitionError
Creates a new DuplicateDefinitionError.
411 412 413 414 415 |
# File 'lib/wsdl/errors.rb', line 411 def initialize( = nil, component_type: nil, definition_key: nil) @component_type = component_type @definition_key = definition_key super() end |
Instance Attribute Details
#component_type ⇒ Symbol? (readonly)
Returns component type (:message, :port_type, :binding, :service).
401 402 403 |
# File 'lib/wsdl/errors.rb', line 401 def component_type @component_type end |
#definition_key ⇒ String? (readonly)
Returns duplicate definition key.
404 405 406 |
# File 'lib/wsdl/errors.rb', line 404 def definition_key @definition_key end |