Skip to main content
Every error the SDK throws: a stable code and a message meant for you, not for the person. Errors that came from Rollup’s server also carry the server’s own code.
Code
The error’s code.
String
What happened. For a server error, it starts with the server’s error code and HTTP status, such as agent_unavailable (503): The agent is unavailable. Other errors from the server carry its message as is, such as the reset date of quotaExceeded.
String?
The server’s error code, such as app_disabled, rate_limited or invalid_schema, for every error that came from Rollup’s server. nil for errors raised on the iPhone.
Bool?
Whether the same call can succeed later unchanged, when the SDK or the server says. true for rateLimited and for Apple’s App Attest service being unavailable; false for quotaExceeded and appAttestFailed.
Double?
Seconds to wait before retrying, when the server sends a Retry-After header.
String
The code and the message, as code: message.

Codes

Static errors

static let RollupError
static let RollupError
static let RollupError
static let RollupError
static let RollupError
static let RollupError
Compare codes rather than whole errors, since messages can differ: