Exception: Lingo::DatabaseError
- Inherits:
-
LingoError
- Object
- StandardError
- LingoError
- Lingo::DatabaseError
- Defined in:
- lib/lingo/error.rb
Instance Attribute Summary collapse
-
#action ⇒ Object
readonly
Returns the value of attribute action.
-
#err ⇒ Object
readonly
Returns the value of attribute err.
-
#file ⇒ Object
readonly
Returns the value of attribute file.
Instance Method Summary collapse
-
#initialize(action, file, err) ⇒ DatabaseError
constructor
A new instance of DatabaseError.
- #to_s ⇒ Object
Methods inherited from LingoError
Constructor Details
#initialize(action, file, err) ⇒ DatabaseError
Returns a new instance of DatabaseError.
94 95 96 |
# File 'lib/lingo/error.rb', line 94 def initialize(action, file, err) @action, @file, @err = action, file, err end |
Instance Attribute Details
#action ⇒ Object (readonly)
Returns the value of attribute action.
92 93 94 |
# File 'lib/lingo/error.rb', line 92 def action @action end |
#err ⇒ Object (readonly)
Returns the value of attribute err.
92 93 94 |
# File 'lib/lingo/error.rb', line 92 def err @err end |
#file ⇒ Object (readonly)
Returns the value of attribute file.
92 93 94 |
# File 'lib/lingo/error.rb', line 92 def file @file end |
Instance Method Details
#to_s ⇒ Object
98 99 100 |
# File 'lib/lingo/error.rb', line 98 def to_s error("An error occured while trying to #{action} `#{file}'") end |