Exception: Mysigner::Upload::AscSubmitter::AppleApiError

Inherits:
StandardError
  • Object
show all
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

Instance Method Summary collapse

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(message, status: nil, retry_after: nil)
  super(message)
  @status = status
  @retry_after = retry_after
end

Instance Attribute Details

#retry_afterObject (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

#statusObject (readonly)

Returns the value of attribute status.



77
78
79
# File 'lib/mysigner/upload/asc_submitter.rb', line 77

def status
  @status
end