Exception: Itunes::Receipt::Error
- Inherits:
-
StandardError
- Object
- StandardError
- Itunes::Receipt::Error
- Defined in:
- lib/itunes/receipt/error.rb
Direct Known Subclasses
InvalidJsonError, InvalidReceiptFormatError, InvalidSharedSecretError, ProductionEnvironmentRequiredError, ReceiptAuthenticationError, ReceiptServerUnavailableError, SubscriptionExpiredError, TestEnvironmentRequiredError
Instance Attribute Summary collapse
-
#status ⇒ Object
readonly
Returns the value of attribute status.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(code) ⇒ Error
constructor
A new instance of Error.
Constructor Details
#initialize(code) ⇒ Error
Returns a new instance of Error.
7 8 9 |
# File 'lib/itunes/receipt/error.rb', line 7 def initialize code @status = code end |
Instance Attribute Details
#status ⇒ Object (readonly)
Returns the value of attribute status.
5 6 7 |
# File 'lib/itunes/receipt/error.rb', line 5 def status @status end |
Class Method Details
.new(code) ⇒ Object
11 12 13 14 15 16 |
# File 'lib/itunes/receipt/error.rb', line 11 def self.new code return super if self != Itunes::Receipt::Error type = Itunes::Receipt::ERRORS[code] type.is_a?(NilClass) && super || type.new(code) end |