feat(domain-manager): refactor custom domain validation and improve c… (#13388)

This commit is contained in:
Antoine Moreaux
2025-08-01 09:01:27 +02:00
committed by GitHub
parent 51340f2b0e
commit 23353e31e6
87 changed files with 779 additions and 901 deletions
@@ -170,42 +170,6 @@ export class ForbiddenError extends BaseGraphQLError {
}
}
export class PersistedQueryNotFoundError extends BaseGraphQLError {
constructor(customException: CustomException);
constructor(message?: string, extensions?: RestrictedGraphQLErrorExtensions);
constructor(
messageOrException?: string | CustomException,
extensions?: RestrictedGraphQLErrorExtensions,
) {
super(
messageOrException || 'PersistedQueryNotFound',
ErrorCode.PERSISTED_QUERY_NOT_FOUND,
extensions,
);
Object.defineProperty(this, 'name', {
value: 'PersistedQueryNotFoundError',
});
}
}
export class PersistedQueryNotSupportedError extends BaseGraphQLError {
constructor(
messageOrException?: string | CustomException,
extensions?: RestrictedGraphQLErrorExtensions,
) {
super(
messageOrException || 'PersistedQueryNotSupported',
ErrorCode.PERSISTED_QUERY_NOT_SUPPORTED,
extensions,
);
Object.defineProperty(this, 'name', {
value: 'PersistedQueryNotSupportedError',
});
}
}
export class UserInputError extends BaseGraphQLError {
constructor(exception: CustomException);