Exception: Lingo::BackendNotAvailableError
- Inherits:
-
BackendError
- Object
- StandardError
- LingoError
- BackendError
- Lingo::BackendNotAvailableError
- Defined in:
- lib/lingo/error.rb
Instance Attribute Summary collapse
-
#err ⇒ Object
readonly
Returns the value of attribute err.
-
#file ⇒ Object
readonly
Returns the value of attribute file.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
Instance Method Summary collapse
-
#initialize(name, file, err) ⇒ BackendNotAvailableError
constructor
A new instance of BackendNotAvailableError.
- #to_s ⇒ Object
Methods inherited from LingoError
Constructor Details
#initialize(name, file, err) ⇒ BackendNotAvailableError
Returns a new instance of BackendNotAvailableError.
79 80 81 |
# File 'lib/lingo/error.rb', line 79 def initialize(name, file, err) @name, @file, @err = name, file, err end |
Instance Attribute Details
#err ⇒ Object (readonly)
Returns the value of attribute err.
77 78 79 |
# File 'lib/lingo/error.rb', line 77 def err @err end |
#file ⇒ Object (readonly)
Returns the value of attribute file.
77 78 79 |
# File 'lib/lingo/error.rb', line 77 def file @file end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
77 78 79 |
# File 'lib/lingo/error.rb', line 77 def name @name end |
Instance Method Details
#to_s ⇒ Object
83 84 85 86 |
# File 'lib/lingo/error.rb', line 83 def to_s msg = "Backend not available `#{name}'" error(file ? msg << " for `#{file}'" : msg) end |