Exception: TinyTds::Error

Inherits:
StandardError
  • Object
show all
Defined in:
lib/tiny_tds/error.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(message) ⇒ Error


6
7
8
9
10
11
# File 'lib/tiny_tds/error.rb', line 6

def initialize(message)
  super
  @severity = nil
  @db_error_number = nil
  @os_error_number = nil
end

Instance Attribute Details

#db_error_numberObject

Returns the value of attribute db_error_number


4
5
6
# File 'lib/tiny_tds/error.rb', line 4

def db_error_number
  @db_error_number
end

#os_error_numberObject

Returns the value of attribute os_error_number


4
5
6
# File 'lib/tiny_tds/error.rb', line 4

def os_error_number
  @os_error_number
end

#severityObject

Returns the value of attribute severity


4
5
6
# File 'lib/tiny_tds/error.rb', line 4

def severity
  @severity
end

#sourceObject

Returns the value of attribute source


4
5
6
# File 'lib/tiny_tds/error.rb', line 4

def source
  @source
end