Skip to content

Commit a30654f

Browse files
Replace GraphQlInputException on \LogicException
1 parent 171d40d commit a30654f

File tree

3 files changed

+3
-12
lines changed

3 files changed

+3
-12
lines changed

app/code/Magento/CatalogGraphQl/Model/LayerFilterItemTypeResolverComposite.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,9 +43,7 @@ public function resolveType(array $data) : string
4343
}
4444
}
4545
if (empty($resolvedType)) {
46-
throw new GraphQlInputException(
47-
__('Concrete type for %1 not implemented', ['ProductLinksInterface'])
48-
);
46+
throw new \LogicException('Cannot resolve layered filter type');
4947
}
5048
}
5149
}

app/code/Magento/CatalogGraphQl/Model/ProductLinkTypeResolverComposite.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,9 +50,7 @@ public function resolveType(array $data) : string
5050
}
5151

5252
if (!$resolvedType) {
53-
throw new GraphQlInputException(
54-
__('Concrete type for %1 not implemented', ['ProductLinksInterface'])
55-
);
53+
throw new \LogicException('Cannot resolve type');
5654
}
5755
}
5856
}

app/code/Magento/EavGraphQl/Model/Resolver/Query/Type.php

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -71,12 +71,7 @@ public function getType(string $attributeCode, string $entityType) : string
7171
try {
7272
$type = $this->typeProcessor->translateTypeName($type);
7373
} catch (\InvalidArgumentException $exception) {
74-
throw new GraphQlInputException(
75-
__('Type %1 has no internal representation declared.', [$type]),
76-
null,
77-
0,
78-
false
79-
);
74+
throw new \LogicException('Cannot resolve EAV type');
8075
}
8176
} else {
8277
$type = $type === 'double' ? 'float' : $type;

0 commit comments

Comments
 (0)