Exception: Lexer::Identity::Error

Inherits:
RuntimeError
  • Object
show all
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

ConfigurationError, HttpError

Instance Attribute Summary collapse

Instance Method Summary collapse

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(message, original = nil)
  self.original_error = original
  Lexer::Identity.logger.error("#{self}: #{message}")
  super(message)
end

Instance Attribute Details

#original_errorObject

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_sObject



39
40
41
# File 'lib/lexer/identity.rb', line 39

def to_s
  "Lexer Identity Exception: #{super}"
end