Exception: Blather::BlatherError
- Inherits:
-
StandardError
- Object
- StandardError
- Blather::BlatherError
- Defined in:
- lib/blather/errors.rb
Overview
Main error class This starts the error hierarchy
Direct Known Subclasses
ArgumentError, ParseError, SASLError, StanzaError, Stream::SASL::UnknownMechanism, Stream::TLS::TLSFailure, StreamError, UnknownResponse
Constant Summary collapse
- @@handler_list =
[]
Class Method Summary collapse
-
.handler_list ⇒ Array<Symbol>
The list of registered handlers.
-
.register(handler) ⇒ Object
Register the class’s handler.
Instance Method Summary collapse
-
#id ⇒ Object
HACK!! until I can refactor the entire Error object model.
Class Method Details
.handler_list ⇒ Array<Symbol>
The list of 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
16 17 18 19 |
# File 'lib/blather/errors.rb', line 16 def self.register(handler) @@handler_list << handler self.handler_hierarchy.unshift handler end |
Instance Method Details
#id ⇒ Object
HACK!! until I can refactor the entire Error object model
32 33 34 |
# File 'lib/blather/errors.rb', line 32 def id nil end |