Exception: Card::Abort

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

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

Returns a new instance of Abort.



37
38
39
40
# File 'lib/card/exceptions.rb', line 37

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

Instance Attribute Details

#statusObject (readonly)

Returns the value of attribute status.



35
36
37
# File 'lib/card/exceptions.rb', line 35

def status
  @status
end