-
Notifications
You must be signed in to change notification settings - Fork 398
Closed
Labels
status: awaiting answerAwaiting answer from the author of issue or PR.Awaiting answer from the author of issue or PR.
Description
Der fellows,
This might be just a question as I do not master Typescript language.
How could I use a generic 'EntityNotFoundError' with @OnUndefined decorator?
That would avoid a lot of boiler entities repeatable error like
UserNotFoundError
PetNotFoundError...
I wish to acomplish a EntityNotFoundError that could by reflection or parameters retirn the custom message
@OnUndefined(EntityNotFoundError) # this doesnt work
@OnUndefined(EntityNotFoundError('User')) # That do not work either.
How should I come with that?
Thanks
Metadata
Metadata
Assignees
Labels
status: awaiting answerAwaiting answer from the author of issue or PR.Awaiting answer from the author of issue or PR.