try {
// SDK operation
} catch (error) {
if (error instanceof AxesError) {
console.error('AXES SDK Error:', error.message);
// Handle specific error types
switch(error.code) {
case 'TBA_NOT_FOUND':
// Handle TBA not found error
break;
case 'INVALID_DID':
// Handle invalid DID error
break;
// ... other error types
}
} else {
console.error('Unexpected error:', error);
}
}