Class: Tarantool::Crud::Error

Inherits:
Error
  • Object
show all
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.

Instance Attribute Summary collapse

Instance Method Summary collapse

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(message = nil, class_name: nil, str: nil, file: nil, line: nil, operation_data: nil)
  super(message)
  @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