Class: Makara::Errors::BlacklistConnection

Inherits:
MakaraError
  • Object
show all
Defined in:
lib/makara/errors/blacklist_connection.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(connection, error) ⇒ BlacklistConnection

Returns a new instance of BlacklistConnection.



6
7
8
9
# File 'lib/makara/errors/blacklist_connection.rb', line 6

def initialize(connection, error)
  @original_error = error
  super "[Makara/#{connection._makara_name}] #{error.message}"
end

Instance Attribute Details

#original_errorObject (readonly)

Returns the value of attribute original_error.



4
5
6
# File 'lib/makara/errors/blacklist_connection.rb', line 4

def original_error
  @original_error
end