## Context Field metadata service was reusing validators from validate-**OBJECT**-metadata-input which were throwing ObjectMetadata exceptions not handled in fieldMetadataGraphqlApiExceptionHandler and were going to Sentry. To solve the issue since this validator is associated with both fields and objects I'm moving the util to the root utils folder of metadata module and throwing a common metadata user input exception
6 lines
113 B
TypeScript
6 lines
113 B
TypeScript
export class InvalidMetadataException extends Error {
|
|
constructor(message: string) {
|
|
super(message);
|
|
}
|
|
}
|