epic_explorer/server/exceptions/integerValidation.exception.ts
2019-07-16 11:47:19 +05:30

8 lines
199 B
TypeScript

import { HttpException } from './index';
export class IntegerValidationException extends HttpException {
constructor(fieldName: String) {
super(400, `${fieldName} must be an integer`);
}
}