Class Mack::Errors::XmppError
In: lib/mack-notifier/errors.rb
Parent: StandardError

Methods

add_error   empty?   get_error   new  

Attributes

error_hash  [RW] 

Public Class methods

[Source]

    # File lib/mack-notifier/errors.rb, line 11
11:       def initialize(msg)
12:         super(msg)
13:         self.error_hash = {}
14:       end

Public Instance methods

[Source]

    # File lib/mack-notifier/errors.rb, line 16
16:       def add_error(type, msg)
17:         self.error_hash[type] ||= []
18:         self.error_hash[type] << msg
19:       end

[Source]

    # File lib/mack-notifier/errors.rb, line 25
25:       def empty?
26:         self.error_hash.empty?
27:       end

[Source]

    # File lib/mack-notifier/errors.rb, line 21
21:       def get_error(type)
22:         self.error_hash[type]
23:       end

[Validate]