add userFriendly messages to PermissionsException (#13659)

/closes #13580

<img width="1186" height="754" alt="image"
src="https://github.com/user-attachments/assets/d5be9e3a-2748-4ad0-b29b-98038cbeeb6a"
/>
This commit is contained in:
neo773
2025-08-05 20:41:51 +00:00
committed by GitHub
parent 22eedb0281
commit a804d65210
11 changed files with 148 additions and 0 deletions
@@ -80,6 +80,10 @@ export class WorkspaceDataSourceService {
throw new PermissionsException(
'Method not allowed as permissions are not handled at datasource level.',
PermissionsExceptionCode.METHOD_NOT_ALLOWED,
{
userFriendlyMessage:
'This operation is not allowed. Please try a different approach or contact support if you need assistance.',
},
);
}
}