Exception: Lingo::LibraryLoadError

Inherits:
LingoError
  • Object
show all
Defined in:
lib/lingo/error.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from LingoError

#class_name, #error

Constructor Details

#initialize(klass, lib, err) ⇒ LibraryLoadError

Returns a new instance of LibraryLoadError.



211
212
213
# File 'lib/lingo/error.rb', line 211

def initialize(klass, lib, err)
  @klass, @lib, @err = klass, lib, err
end

Instance Attribute Details

#errObject (readonly)

Returns the value of attribute err.



209
210
211
# File 'lib/lingo/error.rb', line 209

def err
  @err
end

#klassObject (readonly)

Returns the value of attribute klass.



209
210
211
# File 'lib/lingo/error.rb', line 209

def klass
  @klass
end

#libObject (readonly)

Returns the value of attribute lib.



209
210
211
# File 'lib/lingo/error.rb', line 209

def lib
  @lib
end

Instance Method Details

#to_sObject



215
216
217
# File 'lib/lingo/error.rb', line 215

def to_s
  error("#{class_name}: An error occured while trying to load `#{lib}'")
end