Exception: BorrowDirect::InvalidAidError
- Defined in:
- lib/borrow_direct/error.rb
Instance Attribute Summary collapse
-
#aid ⇒ Object
readonly
Returns the value of attribute aid.
Attributes inherited from Error
Instance Method Summary collapse
-
#initialize(msg, bd_code = nil, aid = nil) ⇒ InvalidAidError
constructor
A new instance of InvalidAidError.
Methods inherited from Error
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
#aid ⇒ Object (readonly)
Returns the value of attribute aid.
31 32 33 |
# File 'lib/borrow_direct/error.rb', line 31 def aid @aid end |