#[repr(transparent)]pub struct DCError(pub NSInteger);
DCError
only.Expand description
DeviceCheck error codes.
See also Apple’s documentation
Tuple Fields§
§0: NSInteger
Implementations§
Source§impl DCError
impl DCError
Sourcepub const UnknownSystemFailure: Self
pub const UnknownSystemFailure: Self
A failure has occurred, such as the failure to generate a token.
Sourcepub const FeatureUnsupported: Self
pub const FeatureUnsupported: Self
DeviceCheck is unavailable on this device.
Sourcepub const InvalidInput: Self
pub const InvalidInput: Self
An error code that indicates when your app provides data that isn’t formatted correctly.
Sourcepub const InvalidKey: Self
pub const InvalidKey: Self
An error caused by a failed attempt to use the App Attest key.
You receive this error if something goes wrong with generating, retrieving, or using an App Attest cryptographic key, when:
- You call
DeviceCheck/DCAppAttestService/attestKey:clientDataHash:completionHandler:
for a key that’s already been attested. - You call
DeviceCheck/DCAppAttestService/generateAssertion:clientDataHash:completionHandler:
with an unattested key. - The App Attest service rejects the key.
An error that indicates a failed attempt to contact the App Attest service during an attestation.
You receive this error when you call
DeviceCheck/DCAppAttestService/attestKey:clientDataHash:completionHandler:
and the framework isn’t able to complete the attestation. If you receive
this error, try the attestation again later using the same key and the same
value for the clientDataHash
parameter. Retrying with the same inputs
helps to preserve the risk metric for a given device.