Exception: Shoppe::Error
- Inherits:
-
StandardError
- Object
- StandardError
- Shoppe::Error
- Defined in:
- lib/shoppe/error.rb
Direct Known Subclasses
Shoppe::Errors::InappropriateDeliveryService, Shoppe::Errors::InsufficientStockToFulfil, Shoppe::Errors::InvalidConfiguration, Shoppe::Errors::NotEnoughStock, Shoppe::Errors::PaymentDeclined, Shoppe::Errors::RefundFailed, Shoppe::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/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/shoppe/error.rb', line 12 def @options[:message] end |
#options ⇒ Object
16 17 18 |
# File 'lib/shoppe/error.rb', line 16 def @options end |