Exception: Lingo::DatabaseError
- Inherits:
-
LingoError
- Object
- StandardError
- LingoError
- Lingo::DatabaseError
- Defined in:
- lib/lingo/error.rb
Instance Attribute Summary (collapse)
-
- (Object) action
readonly
Returns the value of attribute action.
-
- (Object) err
readonly
Returns the value of attribute err.
-
- (Object) file
readonly
Returns the value of attribute file.
Instance Method Summary (collapse)
-
- (DatabaseError) initialize(action, file, err)
constructor
A new instance of DatabaseError.
- - (Object) to_s
Constructor Details
- (DatabaseError) initialize(action, file, err)
A new instance of DatabaseError
77 78 79 |
# File 'lib/lingo/error.rb', line 77 def initialize(action, file, err) @action, @file, @err = action, file, err end |
Instance Attribute Details
- (Object) action (readonly)
Returns the value of attribute action
75 76 77 |
# File 'lib/lingo/error.rb', line 75 def action @action end |
- (Object) err (readonly)
Returns the value of attribute err
75 76 77 |
# File 'lib/lingo/error.rb', line 75 def err @err end |
- (Object) file (readonly)
Returns the value of attribute file
75 76 77 |
# File 'lib/lingo/error.rb', line 75 def file @file end |
Instance Method Details
- (Object) to_s
81 82 83 |
# File 'lib/lingo/error.rb', line 81 def to_s "An error occured when trying to #{action} `#{file}': #{err} (#{err.class})" end |