Exception: Mack::Errors::XmppSendError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/mack-notifier/errors.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(code, msg) ⇒ XmppSendError

Returns a new instance of XmppSendError.



48
49
50
51
52
# File 'lib/mack-notifier/errors.rb', line 48

def initialize(code, msg)
  super("Cannot send message. Code=#{code}, Msg=#{msg}")
  @code = code
  @msg = msg
end

Instance Attribute Details

#codeObject (readonly)

Returns the value of attribute code.



45
46
47
# File 'lib/mack-notifier/errors.rb', line 45

def code
  @code
end

#msgObject (readonly)

Returns the value of attribute msg.



46
47
48
# File 'lib/mack-notifier/errors.rb', line 46

def msg
  @msg
end