MedusaError
admin/discounts.internal.MedusaError
Standardized error to be used across Medusa project.
Properties
code
stringdate
DateRequiredmessage
stringRequiredname
stringRequiredstack
stringtype
stringRequiredCodes
objectRequiredCodes.CART_INCOMPATIBLE_STATE
stringRequiredCodes.INSUFFICIENT_INVENTORY
stringRequiredTypes
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
stringRequiredOptional override for formatting stack traces #### See https://v8.dev/docs/stack-trace-api#customizing-stack-traces
stackTraceLimit
numberRequiredMethods
captureStackTrace
Static
captureStackTrace(targetObject
, constructorOpt?
): void
Create .stack property on a target object
Parameters
targetObject
objectRequiredconstructorOpt
FunctionReturns
void
void
voidInherited from
Error.captureStackTrace
Was this section helpful?