SDK Examples
SDK Error Handling
Error handling patterns for ZKScore SDKs
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Error handling patterns for ZKScore SDKs
try {
const score = await client.getScore(identity);
} catch (error) {
if (error.code === 'IDENTITY_NOT_FOUND') {
console.error('Identity not found');
} else if (error.code === 'NETWORK_ERROR') {
console.error('Network error, retrying...');
// Retry logic
} else {
console.error('Unexpected error:', error);
}
}