Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Custom Exception 만들기 #38

Open
WoungSub-Byun opened this issue Oct 29, 2021 · 0 comments
Open

Custom Exception 만들기 #38

WoungSub-Byun opened this issue Oct 29, 2021 · 0 comments
Assignees
Labels
enhancement New feature or request
Milestone

Comments

@WoungSub-Byun
Copy link
Contributor

WoungSub-Byun commented Oct 29, 2021

  • /goout-api/src/util/exception.ts
    throw new HttpException({ status: HttpStatus.FORBIDDEN, error: 'This is a custom message', }, HttpStatus.FORBIDDEN);
  • 위와 같은 형태로 Exception 명시
@WoungSub-Byun WoungSub-Byun added the enhancement New feature or request label Oct 29, 2021
@WoungSub-Byun WoungSub-Byun added this to the Develop milestone Oct 29, 2021
@WoungSub-Byun WoungSub-Byun self-assigned this Oct 29, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant