Exception: KktShoppe::Error
- Inherits:
-
StandardError
- Object
- StandardError
- KktShoppe::Error
- Defined in:
- lib/kkt_shoppe/error.rb
Direct Known Subclasses
KktShoppe::Errors::InappropriateDeliveryService, KktShoppe::Errors::InsufficientStockToFulfil, KktShoppe::Errors::InvalidConfiguration, KktShoppe::Errors::NotEnoughStock, KktShoppe::Errors::PaymentDeclined, KktShoppe::Errors::RefundFailed, KktShoppe::Errors::UnorderableItem
Instance Method Summary collapse
-
#initialize(options = {}) ⇒ Error
constructor
A new instance of Error.
- #message ⇒ Object
- #options ⇒ Object
Constructor Details
#initialize(options = {}) ⇒ Error
Returns a new instance of Error.
4 5 6 7 8 9 10 |
# File 'lib/kkt_shoppe/error.rb', line 4 def initialize( = {}) if .is_a?(String) @options = {:message => } else @options = end end |
Instance Method Details
#message ⇒ Object
12 13 14 |
# File 'lib/kkt_shoppe/error.rb', line 12 def @options[:message] end |
#options ⇒ Object
16 17 18 |
# File 'lib/kkt_shoppe/error.rb', line 16 def @options end |