We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ab87d4b commit d7f18cdCopy full SHA for d7f18cd
app/GraphQL/Mutation/Artist/Create.php
@@ -9,9 +9,9 @@
9
use App\GraphQL\Field;
10
use Doctrine\Laminas\Hydrator\DoctrineObject;
11
use Doctrine\ORM\EntityManager;
12
-use Exception;
13
use GraphQL\Error\Error;
14
use GraphQL\Type\Definition\ResolveInfo;
+use Throwable;
15
16
class Create implements Field
17
{
@@ -38,7 +38,7 @@ public static function getDefinition(
38
39
try {
40
$driver->get(EntityManager::class)->flush();
41
- } catch (Exception $e) {
+ } catch (Throwable $e) {
42
throw new Error($e->getMessage());
43
}
44
0 commit comments