Exception: Mysigner::Upload::AscSubmitter::AppleApiError
- Inherits:
-
StandardError
- Object
- StandardError
- Mysigner::Upload::AscSubmitter::AppleApiError
- Defined in:
- lib/mysigner/upload/asc_submitter.rb
Overview
Raised on any other unexpected non-2xx response from Apple. Carries the HTTP status + body so failures surface loud (Rule 12). ‘status` and `retry_after` are exposed so the poll loop can branch on 429s without re-parsing the message string.
Instance Attribute Summary collapse
-
#retry_after ⇒ Object
readonly
Returns the value of attribute retry_after.
-
#status ⇒ Object
readonly
Returns the value of attribute status.
Instance Method Summary collapse
-
#initialize(message, status: nil, retry_after: nil) ⇒ AppleApiError
constructor
A new instance of AppleApiError.
Constructor Details
#initialize(message, status: nil, retry_after: nil) ⇒ AppleApiError
Returns a new instance of AppleApiError.
79 80 81 82 83 |
# File 'lib/mysigner/upload/asc_submitter.rb', line 79 def initialize(, status: nil, retry_after: nil) super() @status = status @retry_after = retry_after end |
Instance Attribute Details
#retry_after ⇒ Object (readonly)
Returns the value of attribute retry_after.
77 78 79 |
# File 'lib/mysigner/upload/asc_submitter.rb', line 77 def retry_after @retry_after end |
#status ⇒ Object (readonly)
Returns the value of attribute status.
77 78 79 |
# File 'lib/mysigner/upload/asc_submitter.rb', line 77 def status @status end |