error.graphql 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128
  1. # Represents an error in the input of a mutation.
  2. type UserError implements DisplayableError {
  3. # The path to the input field that caused the error.
  4. field: [String!]
  5. # The error message.
  6. message: String!
  7. }
  8. # A file error. This typically occurs when there is an issue with the file itself causing it to fail validation.
  9. # Check the file before attempting to upload again.
  10. type FileError {
  11. # Code representing the type of error.
  12. code: FileErrorCode!
  13. # Additional details regarding the error.
  14. details: String
  15. # Translated error message.
  16. message: String!
  17. }
  18. # Represents a media error. This typically occurs when there is an issue with the media itself causing it to fail validation.
  19. # Check the media before attempting to upload again.
  20. type MediaError {
  21. # Code representing the type of error.
  22. code: MediaErrorCode!
  23. # Additional details regarding the error.
  24. details: String
  25. # Translated error message.
  26. message: String!
  27. }
  28. # Represents an error that happens during execution of a Media query or mutation.
  29. type MediaUserError implements DisplayableError {
  30. # The error code.
  31. code: MediaUserErrorCode
  32. # The path to the input field that caused the error.
  33. field: [String!]
  34. # The error message.
  35. message: String!
  36. }
  37. # Represents a media warning. This occurs when there is a non-blocking concern regarding your media.
  38. # Consider reviewing your media to ensure it is correct and its parameters are as expected.
  39. type MediaWarning {
  40. # The code representing the type of warning.
  41. code: MediaWarningCode!
  42. # Translated warning message.
  43. message: String
  44. }
  45. # An error that occurs during the execution of ProductChangeStatus.
  46. type ProductChangeStatusUserError implements DisplayableError {
  47. # The error code.
  48. code: ProductChangeStatusUserErrorCode
  49. # The path to the input field that caused the error.
  50. field: [String!]
  51. # The error message.
  52. message: String!
  53. }
  54. # Represents a selling plan group custom error.
  55. type SellingPlanGroupUserError implements DisplayableError {
  56. # The error code.
  57. code: SellingPlanGroupUserErrorCode
  58. # The path to the input field that caused the error.
  59. field: [String!]
  60. # The error message.
  61. message: String!
  62. }
  63. # Error codes for failed product variant bulk create mutations.
  64. type ProductVariantsBulkCreateUserError implements DisplayableError {
  65. # The error code.
  66. code: ProductVariantsBulkCreateUserErrorCode
  67. # The path to the input field that caused the error.
  68. field: [String!]
  69. # The error message.
  70. message: String!
  71. }
  72. # Error codes for failed bulk variant delete mutations.
  73. type ProductVariantsBulkDeleteUserError implements DisplayableError {
  74. # The error code.
  75. code: ProductVariantsBulkDeleteUserErrorCode
  76. # The path to the input field that caused the error.
  77. field: [String!]
  78. # The error message.
  79. message: String!
  80. }
  81. # Error codes for failed bulk product variants reorder operation.
  82. type ProductVariantsBulkReorderUserError implements DisplayableError {
  83. # The error code.
  84. code: ProductVariantsBulkReorderUserErrorCode
  85. # The path to the input field that caused the error.
  86. field: [String!]
  87. # The error message.
  88. message: String!
  89. }
  90. # Error codes for failed variant bulk update mutations.
  91. type ProductVariantsBulkUpdateUserError implements DisplayableError {
  92. # The error code.
  93. code: ProductVariantsBulkUpdateUserErrorCode
  94. # The path to the input field that caused the error.
  95. field: [String!]
  96. # The error message.
  97. message: String!
  98. }