File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed
app/code/Magento/GraphQl/Model/Type Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change 6
6
7
7
namespace Magento \GraphQl \Model \Type ;
8
8
9
- use Magento \Framework \Exception \InputException ;
10
9
use Magento \Framework \ObjectManagerInterface ;
11
10
12
11
/**
@@ -32,13 +31,13 @@ public function __construct(ObjectManagerInterface $objectManager)
32
31
*
33
32
* @param string $typeClassName
34
33
* @return HandlerInterface
35
- * @throws InputException
34
+ * @throws \LogicException
36
35
*/
37
36
public function create ($ typeClassName )
38
37
{
39
38
$ typeHandlerClass = $ this ->objectManager ->create ($ typeClassName );
40
39
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. ' ));
42
41
}
43
42
44
43
return $ typeHandlerClass ;
You can’t perform that action at this time.
0 commit comments