Skip to main content
Module

x/ts_serialize/error_messages.ts

A zero dependency library for serializing data
Latest
File
// Copyright 2018-2022 Gamebridge.ai authors. All rights reserved. MIT license.
export const ERROR_MISSING_PROPERTIES_MAP = "Unable to load serializer properties for the given context";
export const ERROR_DUPLICATE_PROPERTY_KEY = "This key name is already in use by another property, please use a different name";
export const ERROR_DUPLICATE_SERIALIZE_KEY = "This serialize key is already in use by another property, please use a different name";
export const ERROR_SYMBOL_PROPERTY_NAME = "The key name cannot be inferred from a symbol. A value for serializedName must be provided";
export const ERROR_FAILED_TO_RESOLVE_POLYMORPHIC_CLASS = "Failed to resolve polymorphic class";
export const ERROR_INVALID_DATE = "Invalid Date";
export const ERROR_TO_OBJECT_CONTAINING_INVALID_VALUE = "The value is not an object";
export const ERROR_TO_OBJECT_CONTAINING_INVALID_SUB_VALUE = "The sub-value is not an object";
export const ERROR_GET_NEW_SERIALIZABLE_SERIALIZABLE_NOT_RETURNED = "The provided input is not Serializable or a function.";