MedusaError
Standardized error to be used across Medusa project.
constructor
Creates a standardized error to be used across Medusa project.
Parameters
type
stringRequiredtype of error
message
stringRequiredmessage to go along with error
code
stringcode of error
params
anyRequiredparams
Properties
code
stringdate
DateRequiredmessage
stringRequiredtype
stringRequiredCodes
objectRequired
Codes
objectRequiredCodes.CART_INCOMPATIBLE_STATE
stringRequiredCodes.INSUFFICIENT_INVENTORY
stringRequiredTypes
objectRequired
Types
objectRequiredTypes.CONFLICT
stringRequiredTypes.DB_ERROR
stringRequiredErrors stemming from the database
Types.DUPLICATE_ERROR
stringRequiredTypes.INVALID_ARGUMENT
stringRequiredTypes.INVALID_DATA
stringRequiredTypes.NOT_ALLOWED
stringRequiredTypes.NOT_FOUND
stringRequiredTypes.PAYMENT_AUTHORIZATION_ERROR
stringRequiredTypes.UNAUTHORIZED
stringRequiredTypes.UNEXPECTED_STATE
stringRequiredWas this section helpful?