Exception: Card::Error::Abort

Inherits:
StandardError show all
Defined in:
lib/card/error.rb

Overview

exception class for aborting card actions

Constant Summary

Constants inherited from StandardError

StandardError::MAX_BACKTRACE_LINES

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(status, msg = "") ⇒ Abort

Returns a new instance of Abort.



120
121
122
123
# File 'lib/card/error.rb', line 120

def initialize status, msg=""
  @status = status
  super msg
end

Instance Attribute Details

#statusObject (readonly)

Returns the value of attribute status.



114
115
116
# File 'lib/card/error.rb', line 114

def status
  @status
end

Instance Method Details

#reportObject



116
117
118
# File 'lib/card/error.rb', line 116

def report
  Rails.logger.debug "aborting: #{message}"
end