Skip to content

Commit e066f0a

Browse files
author
Eric Bohanon
committed
MAGETWO-81034: Change to LogicException
1 parent 3ef709f commit e066f0a

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

app/code/Magento/GraphQl/Model/Type/HandlerFactory.php

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66

77
namespace Magento\GraphQl\Model\Type;
88

9-
use Magento\Framework\Exception\InputException;
109
use Magento\Framework\ObjectManagerInterface;
1110

1211
/**
@@ -32,13 +31,13 @@ public function __construct(ObjectManagerInterface $objectManager)
3231
*
3332
* @param string $typeClassName
3433
* @return HandlerInterface
35-
* @throws InputException
34+
* @throws \LogicException
3635
*/
3736
public function create($typeClassName)
3837
{
3938
$typeHandlerClass = $this->objectManager->create($typeClassName);
4039
if (!($typeHandlerClass instanceof HandlerInterface)) {
41-
throw new InputException(__('Invalid type name. Type handler does not exist.'));
40+
throw new \LogicException(__('Invalid type name. Type handler does not exist.'));
4241
}
4342

4443
return $typeHandlerClass;

0 commit comments

Comments
 (0)