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



47
48
49
50
# File 'lib/card/error.rb', line 47

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

Instance Attribute Details

#statusObject (readonly)

Returns the value of attribute status.



45
46
47
# File 'lib/card/error.rb', line 45

def status
  @status
end