Exception: Blather::BlatherError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/blather/errors.rb

Overview

Main error class This starts the error hierarchy

Constant Summary collapse

@@handler_list =
[]

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.handler_listArray<Symbol>

The list of registered handlers

Returns:

  • (Array<Symbol>)

    a list of currently registered handlers



24
25
26
# File 'lib/blather/errors.rb', line 24

def self.handler_list
  @@handler_list
end

.register(handler) ⇒ Object

Register the class’s handler

Parameters:

  • handler (Symbol)

    the handler name



16
17
18
19
# File 'lib/blather/errors.rb', line 16

def self.register(handler)
  @@handler_list << handler
  self.handler_hierarchy = [handler] + self.handler_hierarchy
end

Instance Method Details

#idObject

HACK!! until I can refactor the entire Error object model



32
33
34
# File 'lib/blather/errors.rb', line 32

def id
  nil
end