Method: AbstractException#to_database_view

Defined in:
lib/maglev-database-explorer/database_views/abstract_exception.rb

#to_database_view(depth, ranges = {}, params = {}) ⇒ Object



10
11
12
13
14
15
16
17
18
19
20
21
22
23
# File 'lib/maglev-database-explorer/database_views/abstract_exception.rb', line 10

def to_database_view(depth, ranges = {}, params = {})
  obj = super

  obj[:exception] = true
  obj[:inspection] = self.inspect
  
  # need to fetch these ivs explicitly since they're hidden by rubyPrivateSize
  obj[:gsResumable] = self.instance_variable_get("@_st_gsResumable") != false
  obj[:gsTrappable] = self.instance_variable_get("@_st_gsTrappable") != false
  obj[:gsNumber] = self.instance_variable_get("@_st_gsNumber")
  obj[:isDBEHalt] = self.class == DBEHalt

  return obj
end