exception1 [ Nest.js ] Custom Exception 관리하기 Nest.js에서 Exception을 각 모듈별로 관리하기 하기위하여 ExceptionFilter를 이용해보기로 하였습니다. 이 글의 최종 형태는 다음과 같습니다. create(signUpRequestDto: SignUpRequestDto): Observable { this.checkUserAndThrowError(signUpRequestDto.email); return this.authService.hashPassword(signUpRequestDto.password).pipe( map(hashedPassword => { const user = this.userFactory.createUser(signUpRequestDto.email, hashedPassword); const { password, .... 2023. 10. 21. 이전 1 다음