UNPKG

@shopware-ag/meteor-admin-sdk

Version:

The Meteor SDK for the Shopware Administration.

15 lines 554 B
import { hasType } from '../utils'; import HandleError from '../error-handling/HandleError'; /* eslint-disable */ const HandleErrorSerializerFactory = () => ({ name: 'handle-error', // serialize is empty because the error contains a toJSON function serialize: () => { }, deserialize: ({ value }) => { if (hasType('__HandleError__', value)) { return new HandleError(value.__message__, value.__code__); } }, }); export default HandleErrorSerializerFactory; //# sourceMappingURL=handle-error-serializer.js.map