Exception: Spaceship::UnexpectedResponse
- Inherits:
-
StandardError
- Object
- Exception
- StandardError
- Spaceship::UnexpectedResponse
- Defined in:
- spaceship/lib/spaceship/errors.rb
Instance Attribute Summary collapse
-
#error_info ⇒ Object
readonly
Returns the value of attribute error_info.
Instance Method Summary collapse
-
#initialize(error_info = nil) ⇒ UnexpectedResponse
constructor
A new instance of UnexpectedResponse.
- #preferred_error_info ⇒ Object
Methods inherited from StandardError
Methods inherited from Exception
#fastlane_should_report_metrics?
Constructor Details
#initialize(error_info = nil) ⇒ UnexpectedResponse
Returns a new instance of UnexpectedResponse.
68 69 70 71 |
# File 'spaceship/lib/spaceship/errors.rb', line 68 def initialize(error_info = nil) super(error_info) @error_info = error_info end |
Instance Attribute Details
#error_info ⇒ Object (readonly)
Returns the value of attribute error_info.
66 67 68 |
# File 'spaceship/lib/spaceship/errors.rb', line 66 def error_info @error_info end |
Instance Method Details
#preferred_error_info ⇒ Object
73 74 75 76 77 78 79 80 81 |
# File 'spaceship/lib/spaceship/errors.rb', line 73 def preferred_error_info return nil unless @error_info.kind_of?(Hash) && @error_info['resultString'] [ "Apple provided the following error info:", @error_info['resultString'], @error_info['userString'] ].compact.uniq # sometimes 'resultString' and 'userString' are the same value end |