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.



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

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

Instance Attribute Details

#errObject (readonly)

Returns the value of attribute err.



207
208
209
# File 'lib/lingo/error.rb', line 207

def err
  @err
end

#klassObject (readonly)

Returns the value of attribute klass.



207
208
209
# File 'lib/lingo/error.rb', line 207

def klass
  @klass
end

#libObject (readonly)

Returns the value of attribute lib.



207
208
209
# File 'lib/lingo/error.rb', line 207

def lib
  @lib
end

Instance Method Details

#to_sObject



213
214
215
# File 'lib/lingo/error.rb', line 213

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