Exception: BorrowDirect::InvalidAidError

Inherits:
Error
  • Object
show all
Defined in:
lib/borrow_direct/error.rb

Instance Attribute Summary collapse

Attributes inherited from Error

#bd_code

Instance Method Summary collapse

Methods inherited from Error

invalid_aid_code?

Constructor Details

#initialize(msg, bd_code = nil, aid = nil) ⇒ InvalidAidError

Returns a new instance of InvalidAidError.



32
33
34
35
36
# File 'lib/borrow_direct/error.rb', line 32

def initialize(msg, bd_code = nil, aid = nil)
  msg += " (aid: #{aid})" if aid
  super(msg, bd_code)
  @aid = aid
end

Instance Attribute Details

#aidObject (readonly)

Returns the value of attribute aid.



31
32
33
# File 'lib/borrow_direct/error.rb', line 31

def aid
  @aid
end