Add invalid IP exception

This commit is contained in:
rijkvanzanten
2020-10-13 15:49:57 -04:00
parent 121e200a11
commit 46dc2bedc6
2 changed files with 8 additions and 0 deletions

View File

@@ -3,6 +3,7 @@ export * from './failed-validation';
export * from './forbidden';
export * from './hit-rate-limit';
export * from './invalid-credentials';
export * from './invalid-ip';
export * from './invalid-otp';
export * from './invalid-payload';
export * from './invalid-query';

View File

@@ -0,0 +1,7 @@
import { BaseException } from './base';
export class InvalidIPException extends BaseException {
constructor(message = 'Invalid IP address.') {
super(message, 401, 'INVALID_IP');
}
}