class WebTools::Support::Debugger::ObjectLogError

Public Class Methods

new(error) click to toggle source
# File lib/web_tools/support/debugger.rb, line 140
def initialize(error)
  super(error)
  @log_entry = error
  @label = error.label
  @timestamp = error.timestamp
  @thread = error.continuation
end

Public Instance Methods

delete() click to toggle source
# File lib/web_tools/support/debugger.rb, line 148
def delete
  if Maglev::System.needs_commit
    raise Exception, "Abort would loose data. Commit your data and try again"
  end
  Maglev.abort_transaction
  ObjectLogEntry.object_log.delete(@log_entry)
  Maglev.commit_transaction
end