Exceptions Reference
This is a single page collecting all relevant exception kinds related to the Digital Key Platform with an explanation of it and possible causes.
io.vouch.data.ledger
forbidden
An exception kind that occurs when the device sending the tx is not authorized to perform the operation.
unauthorized
An exception kind that occurs when the platform does not recognize the signature produced by the User Device keys.
Possible causes:
- Wrong initialization of the SDK;
- Potential client compromise;
- Payload tampering.
io.vouch.data.ledger.complete-task-tx
missing-task-id
Exception kind thrown in case SDK fails in its validation process and sends the request to dk-api with empty/null asset-persona-task/id or dk-api fails in sending correct asset-persona-task/id to dk-abci.
asset-not-found
This exception kind is not expected to happen, it can happen if the associated asset was not created for some reason.
asset-device-not-found
This exception kind is not expected to happen, it can happen if the associated asset-device was not created for some reason.
persona-not-found
This exception kind is not expected to happen, it can happen if the associated persona does not get created for some reason.
persona-revoked
Exception kind thrown if the referenced persona has the status "revoked".
Possible scenario:
- Given that an Owner has Digital Key already setup over a VIN
- And the Owner has shared Digital Key with Friend for VIN
- And Friend receives the Key Share pop-up
- But Friend doesn't accept or reject it
- And Owner revokes key share to Friend over VIN
- When Friend doesn't call sync and tries to accept or reject the key
- Then the app returns "400 - Persona revoked(kind: persona-revoked)" error
task-not-found
This exception kind is not expected to happen, it can happen if the SDK is forced to send an arbitrary asset-persona-task/id.
workflow-not-found
This exception kind is not expected to happen, it can happen if the workflow [Exceptions Reference]()
task-already-completed
Exception kind thrown if key share was already handled by accepting or rejecting it.
Possible scenario:
- Given that an Owner has Digital Key already setup over a VIN
- And the Owner has shared Digital Key with Friend for VIN
- And Friend receives the invite and accepts it
- When Friend tries to accept or reject the same invite again
- Then the app returns "400 - kind: task-already-completed" error.