Exception: Mack::Errors::XmppSendError
- Inherits:
-
StandardError
- Object
- StandardError
- Mack::Errors::XmppSendError
- Defined in:
- lib/mack-notifier/errors.rb
Instance Attribute Summary collapse
-
#code ⇒ Object
readonly
Returns the value of attribute code.
-
#msg ⇒ Object
readonly
Returns the value of attribute msg.
Instance Method Summary collapse
-
#initialize(code, msg) ⇒ XmppSendError
constructor
A new instance of XmppSendError.
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
#code ⇒ Object (readonly)
Returns the value of attribute code.
45 46 47 |
# File 'lib/mack-notifier/errors.rb', line 45 def code @code end |
#msg ⇒ Object (readonly)
Returns the value of attribute msg.
46 47 48 |
# File 'lib/mack-notifier/errors.rb', line 46 def msg @msg end |