Exception: Lingo::LibraryLoadError
- Inherits:
-
LingoError
- Object
- StandardError
- LingoError
- Lingo::LibraryLoadError
- Defined in:
- lib/lingo/error.rb
Instance Attribute Summary collapse
-
#err ⇒ Object
readonly
Returns the value of attribute err.
-
#klass ⇒ Object
readonly
Returns the value of attribute klass.
-
#lib ⇒ Object
readonly
Returns the value of attribute lib.
Instance Method Summary collapse
-
#initialize(klass, lib, err) ⇒ LibraryLoadError
constructor
A new instance of LibraryLoadError.
- #to_s ⇒ Object
Methods inherited from LingoError
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
#err ⇒ Object (readonly)
Returns the value of attribute err.
209 210 211 |
# File 'lib/lingo/error.rb', line 209 def err @err end |
#klass ⇒ Object (readonly)
Returns the value of attribute klass.
209 210 211 |
# File 'lib/lingo/error.rb', line 209 def klass @klass end |
#lib ⇒ Object (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_s ⇒ Object
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 |