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.
423 424 425 426 427 |
# File 'lib/wsdl/errors.rb', line 423 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).
413 414 415 |
# File 'lib/wsdl/errors.rb', line 413 def component_type @component_type end |
#definition_key ⇒ String? (readonly)
Returns duplicate definition key.
416 417 418 |
# File 'lib/wsdl/errors.rb', line 416 def definition_key @definition_key end |