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.



84
85
86
87
# File 'lib/card/error.rb', line 84

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

Instance Attribute Details

#statusObject (readonly)

Returns the value of attribute status.



82
83
84
# File 'lib/card/error.rb', line 82

def status
  @status
end