Exception: Card::Error::Abort

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

Overview

exception class for aborting card actions

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

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

Returns a new instance of Abort.



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

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

Instance Attribute Details

#statusObject (readonly)

Returns the value of attribute status.



106
107
108
# File 'lib/card/error.rb', line 106

def status
  @status
end

Instance Method Details

#reportObject



108
109
110
# File 'lib/card/error.rb', line 108

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