Exception: Shikibu::ChannelModeConflictError
- Defined in:
- lib/shikibu/errors.rb
Overview
Raised when subscribing with a different mode than the channel's established mode
Instance Attribute Summary collapse
-
#channel ⇒ Object
readonly
Returns the value of attribute channel.
-
#existing_mode ⇒ Object
readonly
Returns the value of attribute existing_mode.
-
#requested_mode ⇒ Object
readonly
Returns the value of attribute requested_mode.
Instance Method Summary collapse
-
#initialize(channel, existing_mode, requested_mode) ⇒ ChannelModeConflictError
constructor
A new instance of ChannelModeConflictError.
Constructor Details
#initialize(channel, existing_mode, requested_mode) ⇒ ChannelModeConflictError
64 65 66 67 68 69 70 |
# File 'lib/shikibu/errors.rb', line 64 def initialize(channel, existing_mode, requested_mode) @channel = channel @existing_mode = existing_mode @requested_mode = requested_mode super("Channel '#{channel}' is already configured as '#{existing_mode}' mode. " \ "Cannot subscribe with '#{requested_mode}' mode.") end |
Instance Attribute Details
#channel ⇒ Object (readonly)
Returns the value of attribute channel.
62 63 64 |
# File 'lib/shikibu/errors.rb', line 62 def channel @channel end |
#existing_mode ⇒ Object (readonly)
Returns the value of attribute existing_mode.
62 63 64 |
# File 'lib/shikibu/errors.rb', line 62 def existing_mode @existing_mode end |
#requested_mode ⇒ Object (readonly)
Returns the value of attribute requested_mode.
62 63 64 |
# File 'lib/shikibu/errors.rb', line 62 def requested_mode @requested_mode end |