Class: Blufin::SqlError
- Inherits:
-
Object
- Object
- Blufin::SqlError
- Defined in:
- lib/core/error_handling/sql_error.rb
Instance Attribute Summary collapse
-
#file ⇒ Object
Returns the value of attribute file.
-
#line ⇒ Object
Returns the value of attribute line.
-
#multi_line_content ⇒ Object
Returns the value of attribute multi_line_content.
-
#type ⇒ Object
Returns the value of attribute type.
Instance Method Summary collapse
-
#initialize(type, file, line, multi_line_content) ⇒ SqlError
constructor
A new instance of SqlError.
Constructor Details
#initialize(type, file, line, multi_line_content) ⇒ SqlError
Returns a new instance of SqlError.
7 8 9 10 11 12 13 14 15 16 17 |
# File 'lib/core/error_handling/sql_error.rb', line 7 def initialize(type, file, line, multi_line_content) raise RuntimeError, "multi_line_content must be either nil or Array, you passed: #{multi_line_content.class}" unless multi_line_content.nil? || multi_line_content.is_a?(Array) @type = type @file = file @line = line @multi_line_content = multi_line_content end |
Instance Attribute Details
#file ⇒ Object
Returns the value of attribute file.
5 6 7 |
# File 'lib/core/error_handling/sql_error.rb', line 5 def file @file end |
#line ⇒ Object
Returns the value of attribute line.
5 6 7 |
# File 'lib/core/error_handling/sql_error.rb', line 5 def line @line end |
#multi_line_content ⇒ Object
Returns the value of attribute multi_line_content.
5 6 7 |
# File 'lib/core/error_handling/sql_error.rb', line 5 def multi_line_content @multi_line_content end |
#type ⇒ Object
Returns the value of attribute type.
5 6 7 |
# File 'lib/core/error_handling/sql_error.rb', line 5 def type @type end |