class Blather::BlatherError

Main error class This starts the error hierarchy

@handler :error

Public Class Methods

handler_list() click to toggle source

The list of registered handlers

@return [Array<Symbol>] a list of currently registered handlers

# File lib/blather/errors.rb, line 24
def self.handler_list
  @@handler_list
end
register(handler) click to toggle source

Register the class's handler

@param [Symbol] handler the handler name

# File lib/blather/errors.rb, line 16
def self.register(handler)
  @@handler_list << handler
  self.handler_hierarchy = [handler] + self.handler_hierarchy
end

Public Instance Methods

id() click to toggle source

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

# File lib/blather/errors.rb, line 32
def id
  nil
end