epic_explorer/server/exceptions/integerValidation.exception.ts

8 lines
199 B
TypeScript
Raw Normal View History

2019-07-09 09:22:36 +00:00
import { HttpException } from './index';
export class IntegerValidationException extends HttpException {
constructor(fieldName: String) {
super(400, `${fieldName} must be an integer`);
}
}