Exception: Pigeon::ChannelInvalid
- Inherits:
-
PigeonError
- Object
- StandardError
- PigeonError
- Pigeon::ChannelInvalid
- Defined in:
- lib/pigeon/errors.rb
Instance Attribute Summary collapse
-
#channel ⇒ Object
readonly
Returns the value of attribute channel.
Instance Method Summary collapse
-
#initialize(channel) ⇒ ChannelInvalid
constructor
A new instance of ChannelInvalid.
Constructor Details
#initialize(channel) ⇒ ChannelInvalid
Returns a new instance of ChannelInvalid.
8 9 10 11 12 |
# File 'lib/pigeon/errors.rb', line 8 def initialize(channel) @channel = channel errors = @channel.errors..join(", ") super(I18n.t(:"#{@channel.class.i18n_scope}.errors.messages.channel_invalid", :errors => errors, :default => :"errors.messages.channel_invalid")) end |
Instance Attribute Details
#channel ⇒ Object (readonly)
Returns the value of attribute channel.
6 7 8 |
# File 'lib/pigeon/errors.rb', line 6 def channel @channel end |