-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #4 from chvarkov/develop
Added docs. Added reexport.
- Loading branch information
Showing
4 changed files
with
107 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
import { ForbiddenException } from '@nestjs/common'; | ||
import { BadRequestException } from '@nestjs/common'; | ||
import { ErrorCode } from '../enums/error-code'; | ||
|
||
export class GoogleRecaptchaException extends ForbiddenException { | ||
export class GoogleRecaptchaException extends BadRequestException { | ||
constructor(public readonly errorCodes: ErrorCode[]) { | ||
super(); | ||
super(`Google recaptcha errors: ${errorCodes.join(', ')}.`); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters