Class: AbstractException
- Defined in:
- lib/mdbe/database_views/abstract_exception.rb
Instance Method Summary collapse
Instance Method Details
#__basetype ⇒ Object
6 7 8 |
# File 'lib/mdbe/database_views/abstract_exception.rb', line 6 def __basetype :exception end |
#to_database_view(depth, ranges = {}, params = {}) ⇒ Object
10 11 12 13 14 15 16 17 18 19 20 21 22 23 |
# File 'lib/mdbe/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 |