Centralize v2 errors types in twenty-shared (#15358)

# Introduction
Followup of https://github.com/twentyhq/twenty/pull/15331 ( Reducing
size by concerns )
This PR centralizes v2 format error types in `twenty-shared` and
consuming them in the existing v2 error format logic in `twenty-server`

## Next
This https://github.com/twentyhq/twenty/pull/15360 handles the frontend
v2 format error refactor

## Conclusion
Related to https://github.com/twentyhq/core-team-issues/issues/1776
This commit is contained in:
Paul Rastoin
2025-10-27 09:44:41 +01:00
committed by GitHub
parent fdada805de
commit 267af42412
104 changed files with 549 additions and 430 deletions
@@ -39,6 +39,7 @@ export const graphQLErrorCodesToFilter = [
ErrorCode.TIMEOUT,
ErrorCode.CONFLICT,
ErrorCode.BAD_USER_INPUT,
ErrorCode.METADATA_VALIDATION_FAILED,
];
export const handleExceptionAndConvertToGraphQLError = (