gstore-node
v8.x
v8.x
  • Introduction
  • Getting Started
    • Motivation
    • Installation
    • Create a gstore instance
  • Schema
    • About
    • Type validation
    • Value validation
    • Additional properties settings
    • Schema options
    • Joi Schema
    • Methods
      • path()
      • virtual()
    • Custom methods
  • Model
    • Creation
    • Methods
      • GET
      • UPDATE
      • DELETE
      • excludeFromIndexes()
      • key()
      • sanitize()
      • clearCache()
  • Entity
    • Creation
    • Properties
    • Methods
      • SAVE
      • plain()
      • populate()
      • model()
      • datastoreEntity()
      • validate()
  • Queries
    • @google-cloud Query
    • list()
    • findOne()
    • deleteAll()
    • findAround()
  • Populate
  • Middleware (hooks)
    • About
    • Pre hooks
    • Post hooks
  • Cache / Dataloader
    • Dataloader
    • Cache
  • gstore Methods
    • save()
  • Typescript
  • Appendix
    • Error Codes
    • Credits
Powered by GitBook
On this page

Was this helpful?

  1. Appendix

Error Codes

  • ERR_ENTITY_NOT_FOUND // When fetching an entity by Key that is not in Datastore

Validation

Here is the list of error codes returned by the gstore Validation. Joi validation will have different code, please refer to their documentation.

  • ERR_GENERIC // Generic Error type

  • ERR_VALIDATION // Global Validation Error (on the whole schema)

  • ERR_PROP_TYPE // Property Type error

  • ERR_PROP_VALUE // Property Value error

  • ERR_PROP_NOT_ALLOWED // Property not allowed

  • ERR_PROP_REQUIRED // Property is required

  • ERR_PROP_IN_RANGE // Value not in the defined values

PreviousAppendixNextCredits

Last updated 6 years ago

Was this helpful?