import { CustomException } from 'src/utils/custom-exception'; export class InvalidMetadataException extends CustomException { constructor(message: string, code: InvalidMetadataExceptionCode) { super(message, code); } } export enum InvalidMetadataExceptionCode { LABEL_REQUIRED = 'Label required', INPUT_TOO_SHORT = 'Input too short', EXCEEDS_MAX_LENGTH = 'Exceeds max length', RESERVED_KEYWORD = 'Reserved keyword', NOT_CAMEL_CASE = 'Not camel case', INVALID_LABEL = 'Invalid label', NAME_NOT_SYNCED_WITH_LABEL = 'Name not synced with label', INVALID_STRING = 'Invalid string', NOT_AVAILABLE = 'Name not available', }