Class: Tarantool::Crud::Error
- Inherits:
-
Error
- Object
- Error
- Tarantool::Crud::Error
- Defined in:
- tarantool-crud/lib/tarantool/crud/errors.rb,
tarantool-crud/lib/tarantool/crud/errors.rb
Overview
Error returned by a crud function; the message is crud's err field.
Direct Known Subclasses
CallError, CountError, DeleteError, GetError, InsertError, InsertManyError, LenError, MinMaxError, ReplaceError, ReplaceManyError, SchemaError, SelectError, TruncateError, UpdateError, UpsertError, UpsertManyError
Instance Attribute Summary collapse
-
#class_name ⇒ Object
readonly
Returns the value of attribute class_name.
-
#file ⇒ Object
readonly
Returns the value of attribute file.
-
#line ⇒ Object
readonly
Returns the value of attribute line.
-
#operation_data ⇒ Object
readonly
Returns the value of attribute operation_data.
-
#str ⇒ Object
readonly
Returns the value of attribute str.
Instance Method Summary collapse
-
#initialize(message = nil, class_name: nil, str: nil, file: nil, line: nil, operation_data: nil) ⇒ Error
constructor
A new instance of Error.
Constructor Details
#initialize(message = nil, class_name: nil, str: nil, file: nil, line: nil, operation_data: nil) ⇒ Error
Returns a new instance of Error.
18 19 20 21 22 23 24 25 |
# File 'tarantool-crud/lib/tarantool/crud/errors.rb', line 18 def initialize( = nil, class_name: nil, str: nil, file: nil, line: nil, operation_data: nil) super() @class_name = class_name @str = str @file = file @line = line @operation_data = operation_data end |
Instance Attribute Details
#class_name ⇒ Object (readonly)
Returns the value of attribute class_name.
7 8 9 |
# File 'tarantool-crud/lib/tarantool/crud/errors.rb', line 7 def class_name @class_name end |
#file ⇒ Object (readonly)
Returns the value of attribute file.
7 8 9 |
# File 'tarantool-crud/lib/tarantool/crud/errors.rb', line 7 def file @file end |
#line ⇒ Object (readonly)
Returns the value of attribute line.
7 8 9 |
# File 'tarantool-crud/lib/tarantool/crud/errors.rb', line 7 def line @line end |
#operation_data ⇒ Object (readonly)
Returns the value of attribute operation_data.
7 8 9 |
# File 'tarantool-crud/lib/tarantool/crud/errors.rb', line 7 def operation_data @operation_data end |
#str ⇒ Object (readonly)
Returns the value of attribute str.
7 8 9 |
# File 'tarantool-crud/lib/tarantool/crud/errors.rb', line 7 def str @str end |