Exception: Lexer::Identity::Error
- Inherits:
-
RuntimeError
- Object
- RuntimeError
- Lexer::Identity::Error
- Defined in:
- lib/lexer/identity.rb
Overview
Base RuntimeError class for Identity related errors. Most Lexer and Identiy errors inherit this class.
Direct Known Subclasses
AttributePayloadError, ConfigurationError, HttpError, MissingLinksError
Instance Attribute Summary collapse
-
#original_error ⇒ Object
Returns the value of attribute original_error.
Instance Method Summary collapse
-
#initialize(message, original = nil) ⇒ Error
constructor
A new instance of Error.
- #to_s ⇒ Object
Constructor Details
#initialize(message, original = nil) ⇒ Error
Returns a new instance of Error.
33 34 35 36 37 |
# File 'lib/lexer/identity.rb', line 33 def initialize(, original = nil) self.original_error = original Lexer::Identity.logger.error("#{self}: #{message}") super() end |
Instance Attribute Details
#original_error ⇒ Object
Returns the value of attribute original_error.
32 33 34 |
# File 'lib/lexer/identity.rb', line 32 def original_error @original_error end |
Instance Method Details
#to_s ⇒ Object
39 40 41 |
# File 'lib/lexer/identity.rb', line 39 def to_s "Lexer Identity Exception: #{super}" end |