Skip to content

Saleor Core: the high performance, composable, headless commerce API.

Add type for warehosue error

Mira Szewczykeda4883b61e2
diff --git a/saleor/graphql/core/types/common.py b/saleor/graphql/core/types/common.py
index e783b199af..0b1dbf2cba 100644
--- a/saleor/graphql/core/types/common.py
+++ b/saleor/graphql/core/types/common.py
@@ -86,6 +86,10 @@ class ExtensionsError(Error):
code = ExtensionsErrorCode(description="The error code.")
+class WarehouseError(Error):
+ code = ExtensionsErrorCode(description="The error code.")
+
+
class WebhookError(Error):
code = WebhookErrorCode(description="The error code.")