@chelseaapps/recommender documentation

File

src/exceptions/invalid-property-name.exceptions.ts

Extends

HttpException

Constructor

import { HttpException, HttpStatus } from '@nestjs/common';

export class InvalidPropertyNameException extends HttpException {
	constructor() {
		super(
			'Property name does not match ‘’^[a-zA-Z0-9_-:]+$’’, value does not agree to property type',
			HttpStatus.BAD_REQUEST,
		);
	}
}

Was this helpful?