Skip to content

Create subclasses of EntityManagerException for certain DatastoreExceptions #172

@sai-pullabhotla

Description

@sai-pullabhotla

Create subclasses of EntityManagerException for certain DatastoreExceptions.

Use the code from DatastoreException to throw a subclass EntityManagerException. Some useful exceptions would -

EntityAlreadyExistsException - if an attempt was made to insert a duplicate key
EntityNotFoundException - if an attempt was made to update a nonexistent entity

https://cloud.google.com/datastore/docs/concepts/errors
https://github.com/googleapis/googleapis/blob/master/google/rpc/code.proto

Metadata

Metadata

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions