Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | ||||
4 | 5 | 6 | 7 | 8 | 9 | 10 |
11 | 12 | 13 | 14 | 15 | 16 | 17 |
18 | 19 | 20 | 21 | 22 | 23 | 24 |
25 | 26 | 27 | 28 | 29 | 30 | 31 |
Tags
- flask
- 공룡게임
- Express
- Nest.js
- JavaScript
- mongoose
- react
- nodejs
- 자료구조
- cookie
- AWS
- TypeScript
- GIT
- jest
- class
- game
- nestjs
- Sequelize
- Dinosaur
- MongoDB
- Python
- dfs
- 정렬
- Bull
- OCR
- Queue
- MySQL
- typeORM
- 게임
Archives
- Today
- Total
목록try/catch (1)
포시코딩

throw & try/catch 예외처리(Exception Handling) 개요 지금까지 프로젝트를 진행하며 애매하면 무조건 try/catch로 감싸고 봤는데 그러다보니 정작 중요하게 예외처리를 해야되는 상황에서는 그러지 못하는 상황이 발생했다. 단적인 예로 살펴보면 다음과 같다. controller class OrdersController { ordersService = new OrdersService(); test = async (req, res) => { console.log('controller 진입'); try { const result = this.ordersService.test(); console.log('service 결과: ', result); if (result) { res.json..
TIL
2023. 1. 13. 16:31