-
Notifications
You must be signed in to change notification settings - Fork 2
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 #56 from plus-tdd/feature/alarm
Feature/alarm
- Loading branch information
Showing
5 changed files
with
159 additions
and
67 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
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,6 +1,11 @@ | ||
export class InvalidPaymentInfoError extends Error { | ||
constructor(field: string) { | ||
super('잘못된 ' + field + '입니다.'); | ||
this.name = 'InvalidCounselingInfo'; | ||
} | ||
|
||
|
||
import { HttpException, HttpStatus } from '@nestjs/common'; | ||
|
||
|
||
export class InvalidPaymentInfoException extends HttpException { | ||
constructor(field: string) { | ||
super(`잘못된 ${field}입니다.`, HttpStatus.BAD_REQUEST); // 400 에러로 설정 | ||
} | ||
} | ||
|